projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c17bcd3
)
Fix FFmpegExaminer termination condition when there is no video;
author
Carl Hetherington
<cth@carlh.net>
Sat, 1 Oct 2022 10:05:33 +0000
(12:05 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 28 Jan 2024 01:01:39 +0000
(
02:01
+0100)
it's hard to see how this ever worked.
src/lib/ffmpeg_examiner.cc
patch
|
blob
|
history
diff --git
a/src/lib/ffmpeg_examiner.cc
b/src/lib/ffmpeg_examiner.cc
index d2d1093a9500abac1982adba50b1621ffb941a3b..59c74b9cc82dce5565fdbd233bfb2d8ddbec0b9d 100644
(file)
--- a/
src/lib/ffmpeg_examiner.cc
+++ b/
src/lib/ffmpeg_examiner.cc
@@
-153,7
+153,7
@@
FFmpegExaminer::FFmpegExaminer (shared_ptr<const FFmpegContent> c, shared_ptr<Jo
av_packet_free (&packet);
- if (
_first_video && got_all_audio && temporal_reference.size() >= (PULLDOWN_CHECK_FRAMES * 2
)) {
+ if (
got_all_audio && (!_video_stream || (_first_video && temporal_reference.size() >= (PULLDOWN_CHECK_FRAMES * 2))
)) {
/* All done */
break;
}