aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mpegvideodec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-11-08 20:27:17 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-11-08 20:27:17 +0100
commit26d7eb40fd3a2fff994cb4bb3c775fd212b77724 (patch)
tree54be1740bc55c520c4804f98da0f649683ec22d0 /libavformat/mpegvideodec.c
parent4b7ef5a1e6fa622fc85741c9c1ca11c798cda9cb (diff)
downloadffmpeg-26d7eb40fd3a2fff994cb4bb3c775fd212b77724.tar.gz
mpegvideo probe: fix slice counting
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mpegvideodec.c')
-rw-r--r--libavformat/mpegvideodec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpegvideodec.c b/libavformat/mpegvideodec.c
index d38d6955e4..1e8aa4eada 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++;