[FFmpeg-cvslog] avcodec/apedec: fix decoding of stereo files with one channel full of silence
Paul B Mahol
git at videolan.org
Thu Apr 28 05:29:21 CEST 2016
ffmpeg | branch: release/2.7 | Paul B Mahol <onemda at gmail.com> | Tue Apr 12 10:51:30 2016 +0200| [7e2c69516910ff6170cd687a9cd057f2f01afa2c] | 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=7e2c69516910ff6170cd687a9cd057f2f01afa2c
---
libavcodec/apedec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/apedec.c b/libavcodec/apedec.c
index 9984b40..2cd77d4 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