diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-11-08 21:11:58 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-11-08 21:12:42 +0100 |
commit | 4e38d4ef0ea63f3c1017466e2c3e51f29ce81689 (patch) | |
tree | f230de63b18dc668f256d099f77e6fc387eba151 | |
parent | 0643ff1712bd5fa063c230ae451a7da345d21575 (diff) | |
download | ffmpeg-4e38d4ef0ea63f3c1017466e2c3e51f29ce81689.tar.gz |
mpegvideo_probe: Getting rid of the use of GCC language extensions
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/mpegvideodec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpegvideodec.c b/libavformat/mpegvideodec.c index 1b057bdf99..1b724bc2b9 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++; } |