aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-23 21:47:48 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-05 00:09:17 +0200
commitf1b5830182086905c412042f34ede7782dde9919 (patch)
tree46eb4da708d2813f62fd9049f173c9d6008e71b1
parentc588316555f9c793e7ae86b98c2d49855c424fb3 (diff)
downloadffmpeg-f1b5830182086905c412042f34ede7782dde9919.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>
-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)