[FFmpeg-cvslog] avformat/h263dec/h263_probe: Check PSC bit 9 and 13 in
Michael Niedermayer
git at videolan.org
Mon Jun 2 23:06:57 CEST 2014
ffmpeg | branch: release/2.2 | Michael Niedermayer <michaelni at gmx.at> | Wed May 7 03:20:13 2014 +0200| [e1b2c93a23077ce60340241eca96f3fa10b89ec3] | committer: Michael Niedermayer
avformat/h263dec/h263_probe: Check PSC bit 9 and 13 in
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 3ad21c50af042ab17bedf755ff8245392425c259)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e1b2c93a23077ce60340241eca96f3fa10b89ec3
---
libavformat/h263dec.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libavformat/h263dec.c b/libavformat/h263dec.c
index 486e4b0..a581d4c 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;
More information about the ffmpeg-cvslog
mailing list