Browse code

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>

Michael Niedermayer authored on 2014/04/24 04:47:48
Showing 1 changed files
... ...
@@ -35,7 +35,7 @@ static int h263_probe(AVProbeData *p)
35 35
     for(i=0; i<p->buf_size; i++){
36 36
         code = (code<<8) + p->buf[i];
37 37
         if ((code & 0xfffffc0000) == 0x800000) {
38
-            src_fmt= (code>>2)&3;
38
+            src_fmt= (code>>2)&7;
39 39
             if(   src_fmt != last_src_fmt
40 40
                && last_src_fmt>0 && last_src_fmt<6
41 41
                && src_fmt<6)