diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/ffmpeg_examiner.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ffmpeg_examiner.cc b/src/lib/ffmpeg_examiner.cc index 4498fa698..0f2b89f3d 100644 --- a/src/lib/ffmpeg_examiner.cc +++ b/src/lib/ffmpeg_examiner.cc @@ -166,7 +166,9 @@ DCPOMATIC_ENABLE_WARNINGS _packet.data = nullptr; _packet.size = 0; /* XXX: I'm not sure this makes any sense: how does _packet.stream_index get the right value here? */ +DCPOMATIC_DISABLE_WARNINGS auto context = _format_context->streams[_packet.stream_index]->codec; +DCPOMATIC_ENABLE_WARNINGS while (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)) { |
