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

Paul B Mahol git at videolan.org
Thu Apr 21 14:29:51 CEST 2016


ffmpeg | branch: release/3.0 | Paul B Mahol <onemda at gmail.com> | Tue Apr 12 10:51:30 2016 +0200| [6fdd122b11e57582655ae9d7735c2c7f45a36cb7] | 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=6fdd122b11e57582655ae9d7735c2c7f45a36cb7
---

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

diff --git a/libavcodec/apedec.c b/libavcodec/apedec.c
index bed9a96..de9d71c 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