diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-23 23:47:48 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-23 17:14:40 +0400 |
commit | acba4d1e55e0eb104abe78716194a8d06cb8b4bd (patch) | |
tree | 0d7bcb19a548b320d32adcefdb6b2f38390438fd | |
parent | ee0db8a51f8c24d7297e43aed2119a4595740d88 (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/h263dec.c b/libavformat/h263dec.c index 8afacad8b7..166ddb42e0 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) |