summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-07-28 09:21:48 +0100
committerCarl Hetherington <cth@carlh.net>2016-07-28 09:21:48 +0100
commit6ec390c3a6259848cb6a85ee5dfda79f76161942 (patch)
tree987960273cb4ee19620961504f8d9e5132c20498 /src/lib/ffmpeg.cc
parentaf122f0f10c23e81a5d1de2ea11112a0e998aa5a (diff)
Some more fixes missing from 2704fe5.
Diffstat (limited to 'src/lib/ffmpeg.cc')
-rw-r--r--src/lib/ffmpeg.cc5
1 files changed, 4 insertions, 1 deletions
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;
}