Some more fixes missing from 2704fe5.
[dcpomatic.git] / src / lib / ffmpeg.cc
index 8c0f0798eb0742d7e1ddc388c39a451fafd437c8..bbf9bbed9405fb602b1fd2d69f69d408daa5fc00 100644 (file)
@@ -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;
 }