diff --git a/libavformat/h263dec.c b/libavformat/h263dec.c index 486e4b0eb8..a581d4c4b5 100644 --- a/libavformat/h263dec.c +++ b/libavformat/h263dec.c @@ -41,6 +41,11 @@ static int h263_probe(AVProbeData *p) && src_fmt<6) res_change++; + if (src_fmt != 7 && !(code&(1<<9)) && (code&(1<<5))) { + invalid_psc++; + continue; + } + if((code&0x30000)==0x20000 && src_fmt){ valid_psc++; last_gn=0;