[FFmpeg-cvslog] mpegvideo probe: fix slice counting

Michael Niedermayer git at videolan.org
Tue Nov 8 20:44:31 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Nov  8 20:27:17 2011 +0100| [26d7eb40fd3a2fff994cb4bb3c775fd212b77724] | committer: Michael Niedermayer

mpegvideo probe: fix slice counting

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

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

 libavformat/mpegvideodec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/mpegvideodec.c b/libavformat/mpegvideodec.c
index d38d695..1e8aa4e 100644
--- a/libavformat/mpegvideodec.c
+++ b/libavformat/mpegvideodec.c
@@ -43,7 +43,7 @@ static int mpegvideo_probe(AVProbeData *p)
             switch(code){
             case     SEQ_START_CODE:   seq++; break;
             case PICTURE_START_CODE:   pic++; break;
-            case   SLICE_START_CODE: slice++; break;
+            case   SLICE_START_CODE...0x1af: slice++; break;
             case    PACK_START_CODE: pspack++; break;
             }
             if     ((code & 0x1f0) == VIDEO_ID)   pes++;



More information about the ffmpeg-cvslog mailing list