Browse code

avcodec/apedec: fix decoding of stereo files with one channel full of silence

Signed-off-by: Paul B Mahol <onemda@gmail.com>
(cherry picked from commit 9149e9c0baaec122bc3da925d6068dffa60b5427)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>

Paul B Mahol authored on 2016/04/12 17:51:30
Showing 1 changed files
... ...
@@ -1372,7 +1372,7 @@ static void ape_unpack_stereo(APEContext *ctx, int count)
1372 1372
     int32_t *decoded0 = ctx->decoded[0];
1373 1373
     int32_t *decoded1 = ctx->decoded[1];
1374 1374
 
1375
-    if (ctx->frameflags & APE_FRAMECODE_STEREO_SILENCE) {
1375
+    if ((ctx->frameflags & APE_FRAMECODE_STEREO_SILENCE) == APE_FRAMECODE_STEREO_SILENCE) {
1376 1376
         /* We are pure silence, so we're done. */
1377 1377
         av_log(ctx->avctx, AV_LOG_DEBUG, "pure silence stereo\n");
1378 1378
         return;