Commit e1848aa4 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mpeg12dec: forward errors when EXPLODE is set

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f86387b6
......@@ -2185,6 +2185,10 @@ static int decode_chunks(AVCodecContext *avctx,
}
}
s2->pict_type = 0;
if (avctx->err_recognition & AV_EF_EXPLODE && s2->er.error_count)
return AVERROR_INVALIDDATA;
return FFMAX(0, buf_ptr - buf - s2->parse_context.last_index);
}
......
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