[FFmpeg-cvslog] avformat/h261dec: dont accept invalid gobs in probe as valid

Michael Niedermayer git at videolan.org
Sat Nov 9 01:27:27 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Nov  9 01:12:10 2013 +0100| [557571ff7db57a5d21aa02af924a7f8e1fd64854] | committer: Michael Niedermayer

avformat/h261dec: dont accept invalid gobs in probe as valid

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

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

 libavformat/h261dec.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/h261dec.c b/libavformat/h261dec.c
index 0bfc824..a1d6821 100644
--- a/libavformat/h261dec.c
+++ b/libavformat/h261dec.c
@@ -43,10 +43,10 @@ static int h261_probe(AVProbeData *p)
                 else              valid_psc++;
 
                 if(src_fmt){ // CIF
-                    static const int lut[16]={1,2,3,4,5,6,7,8,9,10,11,12,0,1,2,3};
+                    static const int lut[16]={1,2,3,4,5,6,7,8,9,10,11,12,0,16,16,16};
                     next_gn = lut[gn];
                 }else{       //QCIF
-                    static const int lut[16]={1,3,4,5,6,0,1,2,3,4,5,6,0,1,2,3,4};
+                    static const int lut[16]={1,3,16,5,16,0,16,16,16,16,16,16,16,16,16,16};
                     next_gn = lut[gn];
                 }
             }



More information about the ffmpeg-cvslog mailing list