Commit 81230e26 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/msmpeg4dec: print error in case of invalid vlc in msmpeg4_decode_dc for version <=2

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d408d3db
......@@ -586,8 +586,10 @@ static int msmpeg4_decode_dc(MpegEncContext * s, int n, int *dir_ptr)
} else {
level = get_vlc2(&s->gb, v2_dc_chroma_vlc.table, DC_VLC_BITS, 3);
}
if (level < 0)
if (level < 0) {
av_log(s->avctx, AV_LOG_ERROR, "illegal dc vlc\n");
return -1;
}
level-=256;
}else{ //FIXME optimize use unified tables & index
if (n < 4) {
......
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