mirror of
https://github.com/mpv-player/mpv
synced 2024-12-15 19:35:49 +00:00
If parsing a seek head fails then mplayer should try continue parsing the file after the seek head.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20750 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
8abf4e3f17
commit
9c4d028084
@ -1660,6 +1660,8 @@ demux_mkv_read_seekhead (demuxer_t *demuxer)
|
|||||||
|
|
||||||
mp_msg(MSGT_DEMUX, MSGL_V, "[mkv] /---- [ parsing seek head ] ---------\n");
|
mp_msg(MSGT_DEMUX, MSGL_V, "[mkv] /---- [ parsing seek head ] ---------\n");
|
||||||
length = ebml_read_length (s, NULL);
|
length = ebml_read_length (s, NULL);
|
||||||
|
/* off now holds the position of the next element after the seek head. */
|
||||||
|
off = stream_tell (s) + length;
|
||||||
while (length > 0 && !res)
|
while (length > 0 && !res)
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -1747,6 +1749,13 @@ demux_mkv_read_seekhead (demuxer_t *demuxer)
|
|||||||
|
|
||||||
stream_seek (s, saved_pos);
|
stream_seek (s, saved_pos);
|
||||||
}
|
}
|
||||||
|
if (res)
|
||||||
|
{
|
||||||
|
/* If there was an error then try to skip this seek head. */
|
||||||
|
if (stream_seek (s, off))
|
||||||
|
res = 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
if (length > 0)
|
if (length > 0)
|
||||||
stream_seek (s, stream_tell (s) + length);
|
stream_seek (s, stream_tell (s) + length);
|
||||||
mp_msg(MSGT_DEMUX, MSGL_V, "[mkv] \\---- [ parsing seek head ] ---------\n");
|
mp_msg(MSGT_DEMUX, MSGL_V, "[mkv] \\---- [ parsing seek head ] ---------\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user