aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-23 21:47:48 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-10 21:55:41 +0200
commit3d5c38ca7d906521f2b23d8cc80414721dbf5242 (patch)
treeefff1b2141d930e2e3c9e4e81019e06a64b3780e /libavformat
parent8713b8e3fb76c64cdeedeb36caa7b4703824ba7e (diff)
downloadffmpeg-3d5c38ca7d906521f2b23d8cc80414721dbf5242.tar.gz
avformat/h263dec: Fix h263 probe
The code was missing 1 bit in the src format Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit fc145e576a443bfc89efdf35b91fd3c9ca0d8388) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/h263dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/h263dec.c b/libavformat/h263dec.c
index 667fdbdcbb..30fd454c49 100644
--- a/libavformat/h263dec.c
+++ b/libavformat/h263dec.c
@@ -35,7 +35,7 @@ static int h263_probe(AVProbeData *p)
for(i=0; i<p->buf_size; i++){
code = (code<<8) + p->buf[i];
if ((code & 0xfffffc0000) == 0x800000) {
- src_fmt= (code>>2)&3;
+ src_fmt= (code>>2)&7;
if( src_fmt != last_src_fmt
&& last_src_fmt>0 && last_src_fmt<6
&& src_fmt<6)