Speculative fix for image corruption following 2e62b2c0de47fc8e5bcb5466b2876f9b23d2ae84
authorCarl Hetherington <cth@carlh.net>
Mon, 26 Oct 2015 13:03:14 +0000 (13:03 +0000)
committerCarl Hetherington <cth@carlh.net>
Mon, 26 Oct 2015 13:03:14 +0000 (13:03 +0000)
src/lib/ffmpeg_decoder.cc

index cc4bd34d464fefc64c8c87de2bdb891e4e3c8b6d..c3a42545a6ed695a97a06257971e9bd71fae6059 100644 (file)
@@ -116,7 +116,7 @@ FFmpegDecoder::pass (PassReason reason, bool accurate)
                decode_video_packet ();
        } else if (fc->subtitle_stream() && fc->subtitle_stream()->uses_index (_format_context, si)) {
                decode_subtitle_packet ();
-       } else if (reason != PASS_REASON_SUBTITLE) {
+       } else if (accurate || reason != PASS_REASON_SUBTITLE) {
                decode_audio_packet ();
        }