Commit 8ce24c14 authored by reimar's avatar reimar

wma_decode_superframe always returns s->block_align, so make

sure we actually consume exactly that amount.
Fixes sound artefacts (mostly blips) that mysteriously disappeared
after e.g. remuxing with mencoder.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11115 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e0335776
......@@ -768,6 +768,9 @@ static int wma_decode_superframe(AVCodecContext *avctx,
s->last_superframe_len = 0;
return 0;
}
if (buf_size < s->block_align)
return 0;
buf_size = s->block_align;
samples = data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment