Fix audio analysis; make sure we don't decode video and let it pile up unwanted.
[dcpomatic.git] / src / lib / ffmpeg_decoder.cc
index ec4e33a6ec56599c3fa5bcd4836e597e5c47bee7..7c846349f466d225cd190601446a917bd0e02eab 100644 (file)
@@ -154,7 +154,7 @@ FFmpegDecoder::pass ()
 
        int const si = _packet.stream_index;
 
-       if (si == _video_stream) {
+       if (si == _video_stream && !_ignore_video) {
                decode_video_packet ();
        } else if (_ffmpeg_content->audio_stream() && _ffmpeg_content->audio_stream()->uses_index (_format_context, si)) {
                decode_audio_packet ();