mirror of
https://github.com/mpv-player/mpv
synced 2024-12-12 18:06:18 +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
|
Realaudio demuxer for MPlayer
|
||||||
(c) 2003 Roberto Togni
|
(c) 2003, 2005 Roberto Togni
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -183,8 +183,13 @@ int demux_open_ra(demuxer_t* demuxer)
|
|||||||
free(buf);
|
free(buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((i = stream_read_char(demuxer->stream)) != 0)
|
if ((i = stream_read_char(demuxer->stream)) != 0) {
|
||||||
mp_msg(MSGT_DEMUX,MSGL_WARN,"[RealAudio] Last header byte is not zero!\n");
|
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) {
|
if (ra_priv->version == 3) {
|
||||||
stream_skip(demuxer->stream, 1);
|
stream_skip(demuxer->stream, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user