Commit 4c1e509c authored by Reimar Döffinger's avatar Reimar Döffinger

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.

Originally committed as revision 11115 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 2d4e0c1a
...@@ -768,6 +768,9 @@ static int wma_decode_superframe(AVCodecContext *avctx, ...@@ -768,6 +768,9 @@ static int wma_decode_superframe(AVCodecContext *avctx,
s->last_superframe_len = 0; s->last_superframe_len = 0;
return 0; return 0;
} }
if (buf_size < s->block_align)
return 0;
buf_size = s->block_align;
samples = data; 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