[Ffmpeg-cvslog] r8550 - trunk/libavformat/raw.c

michael subversion
Thu Mar 29 22:22:39 CEST 2007


Author: michael
Date: Thu Mar 29 22:22:38 2007
New Revision: 8550

Modified:
   trunk/libavformat/raw.c

Log:
fix probe of 001.vdr-broken-6025


Modified: trunk/libavformat/raw.c
==============================================================================
--- trunk/libavformat/raw.c	(original)
+++ trunk/libavformat/raw.c	Thu Mar 29 22:22:38 2007
@@ -337,9 +337,9 @@ static int mpegvideo_probe(AVProbeData *
             case PICTURE_START_CODE:   pic++; break;
             case   SLICE_START_CODE: slice++; break;
             case    PACK_START_CODE: pspack++; break;
-            case           VIDEO_ID:
-            case           AUDIO_ID:   pes++; break;
             }
+            if     ((code & 0x1f0) == VIDEO_ID)   pes++;
+            else if((code & 0x1e0) == AUDIO_ID)   pes++;
         }
     }
     if(seq && seq*9<=pic*10 && pic*9<=slice*10 && !pspack && !pes)




More information about the ffmpeg-cvslog mailing list