[FFmpeg-cvslog] 4xm: Dont ignore dc run errors
Michael Niedermayer
git at videolan.org
Sun Jun 30 01:41:32 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Jun 30 01:29:49 2013 +0200| [68efb1d60a99184c7c04b4a87dbea960d373b12a] | committer: Michael Niedermayer
4xm: Dont ignore dc run errors
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=68efb1d60a99184c7c04b4a87dbea960d373b12a
---
libavcodec/4xm.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c
index dc84e96..6acdd56 100644
--- a/libavcodec/4xm.c
+++ b/libavcodec/4xm.c
@@ -506,8 +506,10 @@ static int decode_i_block(FourXContext *f, int16_t *block)
/* DC coef */
val = get_vlc2(&f->pre_gb, f->pre_vlc.table, ACDC_VLC_BITS, 3);
- if (val >> 4)
+ if (val >> 4) {
av_log(f->avctx, AV_LOG_ERROR, "error dc run != 0\n");
+ return AVERROR_INVALIDDATA;
+ }
if (val)
val = get_xbits(&f->gb, val);
More information about the ffmpeg-cvslog
mailing list