From 81e36a3a409ddbcc79986fc20f37a8ef720771f9 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 1 Mar 2021 12:46:30 +0100 Subject: Fix warning. --- src/lib/ffmpeg_examiner.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib') 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)) { -- cgit v1.2.3