1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

mpegvideo_probe: Getting rid of the use of GCC language extensions

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2011-11-08 21:11:58 +01:00
parent 0643ff1712
commit 4e38d4ef0e

View File

@@ -43,9 +43,9 @@ static int mpegvideo_probe(AVProbeData *p)
switch(code){ switch(code){
case SEQ_START_CODE: seq++; break; case SEQ_START_CODE: seq++; break;
case PICTURE_START_CODE: pic++; break; case PICTURE_START_CODE: pic++; break;
case SLICE_START_CODE...0x1af: slice++; break;
case PACK_START_CODE: pspack++; break; case PACK_START_CODE: pspack++; break;
} }
if (code >= SLICE_START_CODE && code <= 0x1af) slice++;
if ((code & 0x1f0) == VIDEO_ID) vpes++; if ((code & 0x1f0) == VIDEO_ID) vpes++;
else if((code & 0x1e0) == AUDIO_ID) apes++; else if((code & 0x1e0) == AUDIO_ID) apes++;
} }