changeset 14908:82344f91104a

Fix some 28.8 ra files with four text strings
author rtognimp
date Thu, 03 Mar 2005 21:13:30 +0000
parents 11fc3e2ccecf
children aa6715eaa28c
files libmpdemux/demux_realaud.c
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_realaud.c	Thu Mar 03 20:48:00 2005 +0000
+++ b/libmpdemux/demux_realaud.c	Thu Mar 03 21:13:30 2005 +0000
@@ -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);