[FFmpeg-cvslog] wmadec: avoid infinit loop.
Michael Niedermayer
git at videolan.org
Sun May 22 02:44:14 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun May 22 02:33:03 2011 +0200| [eb97d4d611efdb8480a5a8dcfbc35860b9eda638] | committer: Michael Niedermayer
wmadec: avoid infinit loop.
Fixes ticket183
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=eb97d4d611efdb8480a5a8dcfbc35860b9eda638
---
libavcodec/wmadec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c
index 3da1a60..840025d 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;
More information about the ffmpeg-cvslog
mailing list