mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avcodec/msmpeg4dec: print error in case of invalid vlc in msmpeg4_decode_dc for version <=2
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
d408d3dbc3
commit
81230e2612
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user