[MPlayer-cvslog] CVS: main/libmpdemux demux_realaud.c,1.5,1.6

Roberto Togni CVS syncmail at mplayerhq.hu
Thu Mar 3 22:13:32 CET 2005


CVS change done by Roberto Togni CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv10237

Modified Files:
	demux_realaud.c 
Log Message:
Fix some 28.8 ra files with four text strings


Index: demux_realaud.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_realaud.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- demux_realaud.c	30 Nov 2003 19:04:27 -0000	1.5
+++ demux_realaud.c	3 Mar 2005 21:13:30 -0000	1.6
@@ -1,6 +1,6 @@
 /*
     Realaudio demuxer for MPlayer
-		(c) 2003 Roberto Togni
+		(c) 2003, 2005 Roberto Togni
 */
 
 #include <stdio.h>
@@ -183,8 +183,13 @@
 		free(buf);
 	}
 
-	if ((i = stream_read_char(demuxer->stream)) != 0)
-		mp_msg(MSGT_DEMUX,MSGL_WARN,"[RealAudio] Last header byte is not zero!\n");
+	if ((i = stream_read_char(demuxer->stream)) != 0) {
+		buf = malloc(i+1);
+		stream_read(demuxer->stream, buf, i);
+		buf[i] = 0;
+		demux_info_add(demuxer, "Comment", buf);
+		free(buf);
+	}
 
 	if (ra_priv->version == 3) {
 		stream_skip(demuxer->stream, 1);




More information about the MPlayer-cvslog mailing list