[FFmpeg-cvslog] Clear residues only in not coded channel. This fixes overwriting coded residues with zeros if first channel is coded and second is not .
Jakub Stachowski
git at videolan.org
Sat Apr 14 18:58:39 CEST 2012
ffmpeg | branch: master | Jakub Stachowski <qbast at go2.pl> | Sat Apr 14 15:44:39 2012 +0200| [56dcfe87ef173f875ca927fa4d2140f090d09336] | committer: Michael Niedermayer
Clear residues only in not coded channel. This fixes overwriting coded residues with zeros if first channel is coded and second is not.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=56dcfe87ef173f875ca927fa4d2140f090d09336
---
libavcodec/wmalosslessdec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c
index bac064f..50c4725 100644
--- a/libavcodec/wmalosslessdec.c
+++ b/libavcodec/wmalosslessdec.c
@@ -960,7 +960,7 @@ static int decode_subframe(WmallDecodeCtx *s)
use_normal_update_speed(s, i);
revert_cdlms(s, i, 0, subframe_len);
} else
- memset(s->channel_residues, 0, sizeof(s->channel_residues));
+ memset(s->channel_residues[i], 0, sizeof(s->channel_residues[i]));
}
if (s->do_mclms)
revert_mclms(s, subframe_len);
More information about the ffmpeg-cvslog
mailing list