projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81e36a3
)
Fix another crash introduced in cc40b6ea6d882c07c05602d6f3dd1c185481585b
author
Carl Hetherington
<cth@carlh.net>
Mon, 1 Mar 2021 12:38:32 +0000
(13:38 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 1 Mar 2021 12:38:32 +0000
(13:38 +0100)
src/lib/ffmpeg_examiner.cc
patch
|
blob
|
history
diff --git
a/src/lib/ffmpeg_examiner.cc
b/src/lib/ffmpeg_examiner.cc
index 0f2b89f3d0f9e88c6f5819cba7cb204431877bef..78b96666f4f8065476b2c83483cf9290aa09d0c3 100644
(file)
--- a/
src/lib/ffmpeg_examiner.cc
+++ b/
src/lib/ffmpeg_examiner.cc
@@
-169,7
+169,7
@@
DCPOMATIC_ENABLE_WARNINGS
DCPOMATIC_DISABLE_WARNINGS
auto context = _format_context->streams[_packet.stream_index]->codec;
DCPOMATIC_ENABLE_WARNINGS
- while (video_packet(context, temporal_reference)) {}
+ while (
_video_stream &&
video_packet(context, temporal_reference)) {}
for (size_t i = 0; i < _audio_streams.size(); ++i) {
if (_audio_streams[i]->uses_index (_format_context, _packet.stream_index)) {
audio_packet (context, _audio_streams[i]);