From 027dc03440ff0714b541b810264efa8722c87f39 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 19 Oct 2024 20:32:56 +0200 Subject: Cleanup: initialise a few members in-place. --- src/lib/ffmpeg_examiner.cc | 3 --- src/lib/ffmpeg_examiner.h | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'src/lib') diff --git a/src/lib/ffmpeg_examiner.cc b/src/lib/ffmpeg_examiner.cc index 6d3b61473..b61089269 100644 --- a/src/lib/ffmpeg_examiner.cc +++ b/src/lib/ffmpeg_examiner.cc @@ -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 c, shared_ptr job) : FFmpeg (c) - , _video_length (0) - , _need_video_length (false) - , _pulldown (false) { /* Find audio and subtitle streams */ diff --git a/src/lib/ffmpeg_examiner.h b/src/lib/ffmpeg_examiner.h index b2dcbb27d..f6fe8c423 100644 --- a/src/lib/ffmpeg_examiner.h +++ b/src/lib/ffmpeg_examiner.h @@ -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 _rotation; - bool _pulldown; + bool _pulldown = false; struct SubtitleStart { -- cgit v1.2.3