[FFmpeg-cvslog] mpegvideo_probe: Getting rid of the use of GCC language extensions
Michael Niedermayer
git at videolan.org
Tue Nov 8 21:20:05 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Nov 8 21:11:58 2011 +0100| [4e38d4ef0ea63f3c1017466e2c3e51f29ce81689] | committer: Michael Niedermayer
mpegvideo_probe: Getting rid of the use of GCC language extensions
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4e38d4ef0ea63f3c1017466e2c3e51f29ce81689
---
libavformat/mpegvideodec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/mpegvideodec.c b/libavformat/mpegvideodec.c
index 1b057bd..1b724bc 100644
--- a/libavformat/mpegvideodec.c
+++ b/libavformat/mpegvideodec.c
@@ -43,9 +43,9 @@ static int mpegvideo_probe(AVProbeData *p)
switch(code){
case SEQ_START_CODE: seq++; break;
case PICTURE_START_CODE: pic++; break;
- case SLICE_START_CODE...0x1af: slice++; break;
case PACK_START_CODE: pspack++; break;
}
+ if (code >= SLICE_START_CODE && code <= 0x1af) slice++;
if ((code & 0x1f0) == VIDEO_ID) vpes++;
else if((code & 0x1e0) == AUDIO_ID) apes++;
}
More information about the ffmpeg-cvslog
mailing list