diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-05-22 02:33:03 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-05-22 02:33:03 +0200 |
commit | eb97d4d611efdb8480a5a8dcfbc35860b9eda638 (patch) | |
tree | e8ac0d9f62939f8d66b22d0905a272f7f5c80f0b /libavcodec | |
parent | a13fec8a9cbc13745bcb7e7c1b017d72623051ad (diff) | |
download | ffmpeg-eb97d4d611efdb8480a5a8dcfbc35860b9eda638.tar.gz |
wmadec: avoid infinit loop.
Fixes ticket183
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/wmadec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c index 3da1a60c19..840025d493 100644 --- a/libavcodec/wmadec.c +++ b/libavcodec/wmadec.c @@ -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; |