diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-03-01 13:38:32 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-03-01 13:38:32 +0100 |
| commit | 45f928ac06f0fbd8e62c6f08ad43799285d004f5 (patch) | |
| tree | f3c8690523a86f4090e9eadbab32c668f1c90d10 /src/lib/ffmpeg_examiner.cc | |
| parent | 81e36a3a409ddbcc79986fc20f37a8ef720771f9 (diff) | |
Fix another crash introduced in cc40b6ea6d882c07c05602d6f3dd1c185481585b
Diffstat (limited to 'src/lib/ffmpeg_examiner.cc')
| -rw-r--r-- | src/lib/ffmpeg_examiner.cc | 2 |
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]); |
