diff options
author | Jakub Stachowski <qbast@go2.pl> | 2012-04-14 15:44:39 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-04-14 18:54:09 +0200 |
commit | 56dcfe87ef173f875ca927fa4d2140f090d09336 (patch) | |
tree | 753eb27a39aa2f08f181fee4a9e55444b78f0903 /libavcodec | |
parent | b44a5ec76e1ed87d7b31befa8c67b671ed94d0ce (diff) | |
download | ffmpeg-56dcfe87ef173f875ca927fa4d2140f090d09336.tar.gz |
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@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/wmalosslessdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c index bac064ff3d..50c4725045 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); |