avoid detecting mpeg stream when other formats embed mp3 tracks.
authorFrançois Revol <revol@free.fr>
Fri, 18 Apr 2003 14:35:15 +0000 (14:35 +0000)
committerFrançois Revol <revol@free.fr>
Fri, 18 Apr 2003 14:35:15 +0000 (14:35 +0000)
Originally committed as revision 1788 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mpegts.c

index df3aca8..92e1d51 100644 (file)
@@ -78,7 +78,7 @@ static int mpegts_probe(AVProbeData *p)
     size = get_packet_size(p->buf, p->buf_size);
     if (size < 0)
         return 0;
-    return AVPROBE_SCORE_MAX;
+    return AVPROBE_SCORE_MAX - 1;
 }
 
 static int mpegts_read_header(AVFormatContext *s,