[FFmpeg-cvslog] avformat/h263dec: Fix h263 probe

Michael Niedermayer git at videolan.org
Mon Jun 23 17:55:57 CEST 2014


ffmpeg | branch: release/2.1 | Michael Niedermayer <michaelni at gmx.at> | Wed Apr 23 21:47:48 2014 +0200| [d89e5b20f2b9191b71e75c105fc7c7e13ca4d61a] | committer: Michael Niedermayer

avformat/h263dec: Fix h263 probe

The code was missing 1 bit in the src format

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit fc145e576a443bfc89efdf35b91fd3c9ca0d8388)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d89e5b20f2b9191b71e75c105fc7c7e13ca4d61a
---

 libavformat/h263dec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/h263dec.c b/libavformat/h263dec.c
index e6e0345..19ed6a9 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)



More information about the ffmpeg-cvslog mailing list