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

Paul B Mahol git at videolan.org
Tue Apr 12 11:05:31 CEST 2016


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Apr 12 10:51:30 2016 +0200| [9149e9c0baaec122bc3da925d6068dffa60b5427] | committer: Paul B Mahol

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

Signed-off-by: Paul B Mahol <onemda at gmail.com>

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

 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