]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/apedec.c
avcodec/tak_parser: fix parsing of streams with bunch of small frames at end
[ffmpeg] / libavcodec / apedec.c
index bed9a96984e6feaf4636bbb7f497f547bea2e947..de9d71ca40524301cebfe61ab75b52013f18d29b 100644 (file)
@@ -1372,7 +1372,7 @@ static void ape_unpack_stereo(APEContext *ctx, int count)
     int32_t *decoded0 = ctx->decoded[0];
     int32_t *decoded1 = ctx->decoded[1];
 
-    if (ctx->frameflags & APE_FRAMECODE_STEREO_SILENCE) {
+    if ((ctx->frameflags & APE_FRAMECODE_STEREO_SILENCE) == APE_FRAMECODE_STEREO_SILENCE) {
         /* We are pure silence, so we're done. */
         av_log(ctx->avctx, AV_LOG_DEBUG, "pure silence stereo\n");
         return;