Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-06-30 03:29:49 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-06-30 03:35:22 +0400
commit68efb1d60a99184c7c04b4a87dbea960d373b12a (patch)
tree0d62926d4fd15dbecda0ac96735505b581ebf363 /libavcodec/4xm.c
parent13c56e9a9cf18f33bcbc2dc1a5cf2a5f98ca9702 (diff)
4xm: Dont ignore dc run errors
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/4xm.c')
-rw-r--r--libavcodec/4xm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c
index dc84e96953..6acdd56dc3 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);