git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04b15a6
)
avformat/h263dec/h263_probe: Check PSC bit 9 and 13 in
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 7 May 2014 01:20:13 +0000
(
03:20
+0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 7 May 2014 01:20:13 +0000
(
03:20
+0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/h263dec.c
patch
|
blob
|
history
diff --git
a/libavformat/h263dec.c
b/libavformat/h263dec.c
index
486e4b0
..
a581d4c
100644
(file)
--- 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;