mirror of https://github.com/mpv-player/mpv
Fix for Real files with header size == 0x10 (normally is 0x12)
(fixes sample file header_size_10.rmvb) Patch by LR <hephooey (at) fastmail (dot) fm> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11798 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6d8bf09c97
commit
0bb4974b4b
|
@ -870,11 +870,16 @@ void demux_open_real(demuxer_t* demuxer)
|
|||
int a_streams=0;
|
||||
int v_streams=0;
|
||||
int i;
|
||||
int header_size;
|
||||
|
||||
stream_skip(demuxer->stream, 4); /* header size */
|
||||
stream_skip(demuxer->stream, 2); /* version */
|
||||
// stream_skip(demuxer->stream, 4);
|
||||
i = stream_read_dword(demuxer->stream);
|
||||
header_size = stream_read_dword(demuxer->stream); /* header size */
|
||||
mp_msg(MSGT_DEMUX,MSGL_V, "real: Header size: %d\n", header_size);
|
||||
i = stream_read_word(demuxer->stream); /* version */
|
||||
mp_msg(MSGT_DEMUX,MSGL_V, "real: Header object version: %d\n", i);
|
||||
if (header_size == 0x10)
|
||||
i = stream_read_word(demuxer->stream);
|
||||
else /* we should test header_size here too. */
|
||||
i = stream_read_dword(demuxer->stream);
|
||||
mp_msg(MSGT_DEMUX,MSGL_V, "real: File version: %d\n", i);
|
||||
num_of_headers = stream_read_dword(demuxer->stream);
|
||||
// stream_skip(demuxer->stream, 4); /* number of headers */
|
||||
|
|
Loading…
Reference in New Issue