[Mplayer-cvslog] CVS: main/libmpdemux demuxer.c,1.78,1.79

Arpi of Ize arpi at mplayer.dev.hu
Thu Mar 14 12:18:27 CET 2002


Update of /cvsroot/mplayer/main/libmpdemux
In directory mplayer:/var/tmp.root/cvs-serv26720

Modified Files:
	demuxer.c 
Log Message:
mp3 detection fixed...

Index: demuxer.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demuxer.c,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -r1.78 -r1.79
--- demuxer.c	20 Feb 2002 16:59:25 -0000	1.78
+++ demuxer.c	14 Mar 2002 11:18:19 -0000	1.79
@@ -603,6 +603,8 @@
   } else {
     printf("MPEG packet stats: p100: %d  p101: %d  PES: %d  MP3: %d \n",
 	num_elementary_packets100,num_elementary_packets101,num_elementary_packetsPES,num_mp3audio_packets);
+    if(num_mp3audio_packets>50 && num_mp3audio_packets>2*num_elementary_packets100)
+	break; // it's .MP3
     // some hack to get meaningfull error messages to our unhappy users:
     if(num_elementary_packets100>=2 && num_elementary_packets101>=2 &&
        abs(num_elementary_packets101+8-num_elementary_packets100)<16){




More information about the MPlayer-cvslog mailing list