1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avformat/h261dec: dont accept invalid gobs in probe as valid

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-11-09 01:12:10 +01:00
parent 891f33cc70
commit 557571ff7d

View File

@ -43,10 +43,10 @@ static int h261_probe(AVProbeData *p)
else valid_psc++;
if(src_fmt){ // CIF
static const int lut[16]={1,2,3,4,5,6,7,8,9,10,11,12,0,1,2,3};
static const int lut[16]={1,2,3,4,5,6,7,8,9,10,11,12,0,16,16,16};
next_gn = lut[gn];
}else{ //QCIF
static const int lut[16]={1,3,4,5,6,0,1,2,3,4,5,6,0,1,2,3,4};
static const int lut[16]={1,3,16,5,16,0,16,16,16,16,16,16,16,16,16,16};
next_gn = lut[gn];
}
}