aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-23 21:47:48 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-23 21:54:13 +0200
commitfc145e576a443bfc89efdf35b91fd3c9ca0d8388 (patch)
tree7dce5f86df102ac8bf33e0bec29174365370ed73
parent2c4862e7a1315fb42eae7ebe574d41f53a1b009c (diff)
downloadffmpeg-fc145e576a443bfc89efdf35b91fd3c9ca0d8388.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>
-rw-r--r--libavformat/h263dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/h263dec.c b/libavformat/h263dec.c
index e6e0345b69..19ed6a94ca 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)