Add an assertion.
authorCarl Hetherington <cth@carlh.net>
Sat, 6 Jul 2019 22:37:55 +0000 (23:37 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 6 Jul 2019 22:37:55 +0000 (23:37 +0100)
src/lib/ffmpeg_decoder.cc

index cbde534..62d4d26 100644 (file)
@@ -364,6 +364,7 @@ FFmpegDecoder::seek (ContentTime time, bool accurate)
        if (_video_stream) {
                stream = _video_stream;
        } else {
+               DCPOMATIC_ASSERT (_ffmpeg_content->audio);
                shared_ptr<FFmpegAudioStream> s = dynamic_pointer_cast<FFmpegAudioStream> (_ffmpeg_content->audio->stream ());
                if (s) {
                        stream = s->index (_format_context);