[FFmpeg-cvslog] avcodec/apedec: fix decoding of stereo files with one channel full of silence

Paul B Mahol git at videolan.org
Wed Apr 27 05:42:59 CEST 2016


ffmpeg | branch: release/2.8 | Paul B Mahol <onemda at gmail.com> | Tue Apr 12 10:51:30 2016 +0200| [edc61e3abad08ac6839a4b94dc80a063f29f347e] | committer: Michael Niedermayer

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

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

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=edc61e3abad08ac6839a4b94dc80a063f29f347e
---

 libavcodec/apedec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/apedec.c b/libavcodec/apedec.c
index c6eae55..b3969eb 100644
--- a/libavcodec/apedec.c
+++ b/libavcodec/apedec.c
@@ -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;



More information about the ffmpeg-cvslog mailing list