diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-07 03:20:13 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-07 03:20:13 +0200 |
commit | 3ad21c50af042ab17bedf755ff8245392425c259 (patch) | |
tree | abe8dbe2266a5a48969f66e1e2b709389ac30dc6 /libavformat | |
parent | 04b15a6055fc230a655091ce21303f9d2a996ed9 (diff) | |
download | ffmpeg-3ad21c50af042ab17bedf755ff8245392425c259.tar.gz |
avformat/h263dec/h263_probe: Check PSC bit 9 and 13 in
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/h263dec.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |