From: Carl Hetherington Date: Sat, 6 Jul 2019 22:37:55 +0000 (+0100) Subject: Add an assertion. X-Git-Tag: v2.15.10~1 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=09063d5958cad17ce89935f38f12c4fcbaaedf4f Add an assertion. --- diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index cbde534c3..62d4d2655 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -364,6 +364,7 @@ FFmpegDecoder::seek (ContentTime time, bool accurate) if (_video_stream) { stream = _video_stream; } else { + DCPOMATIC_ASSERT (_ffmpeg_content->audio); shared_ptr s = dynamic_pointer_cast (_ffmpeg_content->audio->stream ()); if (s) { stream = s->index (_format_context);