diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-08-03 09:51:27 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-08-03 09:51:27 +0200 |
| commit | 5f1fdbafc6eef37523250e0b8542a8939a038823 (patch) | |
| tree | 9a1caa28150fbce6843954bd4a2d34b04a828184 | |
| parent | d461077cf4f2c1470d2d0d6dbc4f5708411bec65 (diff) | |
Fix number of frames in the pulldown check.
| -rw-r--r-- | src/lib/ffmpeg_examiner.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/ffmpeg_examiner.cc b/src/lib/ffmpeg_examiner.cc index 2c6e1b21f..5683555e4 100644 --- a/src/lib/ffmpeg_examiner.cc +++ b/src/lib/ffmpeg_examiner.cc @@ -158,7 +158,7 @@ DCPOMATIC_ENABLE_WARNINGS av_packet_unref (&_packet); - if (_first_video && got_all_audio && temporal_reference.size() >= PULLDOWN_CHECK_FRAMES) { + if (_first_video && got_all_audio && temporal_reference.size() >= (PULLDOWN_CHECK_FRAMES * 2)) { /* All done */ break; } @@ -213,7 +213,7 @@ FFmpegExaminer::video_packet (AVCodecContext* context, string& temporal_referenc { DCPOMATIC_ASSERT (_video_stream); - if (_first_video && !_need_video_length && temporal_reference.size() >= PULLDOWN_CHECK_FRAMES) { + if (_first_video && !_need_video_length && temporal_reference.size() >= (PULLDOWN_CHECK_FRAMES * 2)) { return; } @@ -229,7 +229,7 @@ DCPOMATIC_ENABLE_WARNINGS _format_context->streams[_video_stream.get()] ).get_value_or (ContentTime ()).frames_round (video_frame_rate().get ()); } - if (temporal_reference.size() < PULLDOWN_CHECK_FRAMES) { + if (temporal_reference.size() < (PULLDOWN_CHECK_FRAMES * 2)) { temporal_reference += (_frame->top_field_first ? "T" : "B"); temporal_reference += (_frame->repeat_pict ? "3" : "2"); } |
