Commit eb97d4d6 authored by Michael Niedermayer's avatar Michael Niedermayer

wmadec: avoid infinit loop.

Fixes ticket183
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a13fec8a
......@@ -827,7 +827,7 @@ static int wma_decode_superframe(AVCodecContext *avctx,
return 0;
}
if (buf_size < s->block_align)
return 0;
return AVERROR(EINVAL);
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