mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 03:39:45 +00:00
Allows playback of truncated matroska files.
Originally committed as revision 6989 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0032cac2c9
commit
7e2447028c
@ -1942,7 +1942,7 @@ matroska_parse_seekhead (MatroskaDemuxContext *matroska)
|
||||
/* check ID */
|
||||
if (!(id = ebml_peek_id (matroska,
|
||||
&matroska->level_up)))
|
||||
break;
|
||||
goto finish;
|
||||
if (id != seek_id) {
|
||||
av_log(matroska->ctx, AV_LOG_INFO,
|
||||
"We looked for ID=0x%x but got "
|
||||
@ -1954,7 +1954,7 @@ matroska_parse_seekhead (MatroskaDemuxContext *matroska)
|
||||
|
||||
/* read master + parse */
|
||||
if ((res = ebml_read_master(matroska, &id)) < 0)
|
||||
break;
|
||||
goto finish;
|
||||
switch (id) {
|
||||
case MATROSKA_ID_CUES:
|
||||
if (!(res = matroska_parse_index(matroska)) ||
|
||||
@ -1971,8 +1971,6 @@ matroska_parse_seekhead (MatroskaDemuxContext *matroska)
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (res < 0)
|
||||
break;
|
||||
|
||||
finish:
|
||||
/* remove dummy level */
|
||||
|
Loading…
Reference in New Issue
Block a user