Cleanup: initialise a few members in-place.
authorCarl Hetherington <cth@carlh.net>
Sat, 19 Oct 2024 18:32:56 +0000 (20:32 +0200)
committerCarl Hetherington <cth@carlh.net>
Sat, 19 Oct 2024 18:32:56 +0000 (20:32 +0200)
src/lib/ffmpeg_examiner.cc
src/lib/ffmpeg_examiner.h

index 6d3b614734d13557bc5960c9ebfb79e451dd6ae1..b610892698563f86288e72e3f657da79c523d398 100644 (file)
@@ -62,9 +62,6 @@ static const int PULLDOWN_CHECK_FRAMES = 16;
 /** @param job job that the examiner is operating in, or 0 */
 FFmpegExaminer::FFmpegExaminer (shared_ptr<const FFmpegContent> c, shared_ptr<Job> job)
        : FFmpeg (c)
-       , _video_length (0)
-       , _need_video_length (false)
-       , _pulldown (false)
 {
        /* Find audio and subtitle streams */
 
index b2dcbb27d2ff5408af31501f968f106a0854cd5f..f6fe8c42386b855f4460dac60262ee33bd573e65 100644 (file)
@@ -101,11 +101,11 @@ private:
        /** Video length, either obtained from the header or derived by running
         *  through the whole file.
         */
-       Frame _video_length;
-       bool _need_video_length;
+       Frame _video_length = 0;
+       bool _need_video_length = false;
 
        boost::optional<double> _rotation;
-       bool _pulldown;
+       bool _pulldown = false;
 
        struct SubtitleStart
        {