Commit 68efb1d6 authored by Michael Niedermayer's avatar Michael Niedermayer

4xm: Dont ignore dc run errors

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 13c56e9a
......@@ -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);
......
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