mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 01:36:25 +01:00
Exit when an invalid EBML ID has been read (e.g. for files that have been cut off).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11935 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
9526e36252
commit
9093ce10da
@ -2634,6 +2634,9 @@ demux_mkv_fill_buffer (demuxer_t *demuxer)
|
||||
break;
|
||||
}
|
||||
|
||||
case EBML_ID_INVALID:
|
||||
return 0;
|
||||
|
||||
default:
|
||||
ebml_read_skip (s, &l);
|
||||
break;
|
||||
@ -2676,6 +2679,9 @@ demux_mkv_fill_buffer (demuxer_t *demuxer)
|
||||
l = tmp;
|
||||
break;
|
||||
|
||||
case EBML_ID_INVALID:
|
||||
return 0;
|
||||
|
||||
default:
|
||||
ebml_read_skip (s, &l);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user