swaroop: fix encryption of files encoded from DCP.
[dcpomatic.git] / src / lib / ffmpeg_decoder.cc
index cbde534c30608e97cdd1c673754a95ae6c32bf8b..62d4d2655f59c84af57f96c8c3d25e747794a352 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);