summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_examiner.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-03-01 13:38:32 +0100
committerCarl Hetherington <cth@carlh.net>2021-03-01 13:38:32 +0100
commit45f928ac06f0fbd8e62c6f08ad43799285d004f5 (patch)
treef3c8690523a86f4090e9eadbab32c668f1c90d10 /src/lib/ffmpeg_examiner.cc
parent81e36a3a409ddbcc79986fc20f37a8ef720771f9 (diff)
Fix another crash introduced in cc40b6ea6d882c07c05602d6f3dd1c185481585b
Diffstat (limited to 'src/lib/ffmpeg_examiner.cc')
-rw-r--r--src/lib/ffmpeg_examiner.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_examiner.cc b/src/lib/ffmpeg_examiner.cc
index 0f2b89f3d..78b96666f 100644
--- 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]);