mirror of
https://github.com/mpv-player/mpv
synced 2024-12-11 01:16:45 +00:00
Fix some 28.8 ra files with four text strings
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14909 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
54557ddf54
commit
e98640dadc
@ -1,6 +1,6 @@
|
||||
/*
|
||||
Realaudio demuxer for MPlayer
|
||||
(c) 2003 Roberto Togni
|
||||
(c) 2003, 2005 Roberto Togni
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
@ -183,8 +183,13 @@ int demux_open_ra(demuxer_t* demuxer)
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user