X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fffmpeg.cc;h=bbf9bbed9405fb602b1fd2d69f69d408daa5fc00;hp=8c0f0798eb0742d7e1ddc388c39a451fafd437c8;hb=6ec390c3a6259848cb6a85ee5dfda79f76161942;hpb=af122f0f10c23e81a5d1de2ea11112a0e998aa5a diff --git a/src/lib/ffmpeg.cc b/src/lib/ffmpeg.cc index 8c0f0798e..bbf9bbed9 100644 --- a/src/lib/ffmpeg.cc +++ b/src/lib/ffmpeg.cc @@ -224,7 +224,10 @@ FFmpeg::setup_decoders () AVCodecContext * FFmpeg::video_codec_context () const { - DCPOMATIC_ASSERT (_video_stream); + if (!_video_stream) { + return 0; + } + return _format_context->streams[_video_stream.get()]->codec; }