diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-10-19 20:32:56 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-10-19 20:32:56 +0200 |
| commit | 027dc03440ff0714b541b810264efa8722c87f39 (patch) | |
| tree | 460f8856f581c16e1a1f5d12fdaa314f5720f330 | |
| parent | 904538721cf2b69bb8d80059d13ae20e4f256fce (diff) | |
Cleanup: initialise a few members in-place.
| -rw-r--r-- | src/lib/ffmpeg_examiner.cc | 3 | ||||
| -rw-r--r-- | src/lib/ffmpeg_examiner.h | 6 |
2 files changed, 3 insertions, 6 deletions
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<const FFmpegContent> c, shared_ptr<Job> 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<double> _rotation; - bool _pulldown; + bool _pulldown = false; struct SubtitleStart { |
