mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Check that the seekheads were created
Originally committed as revision 10369 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0b38843a6c
commit
c35de1a131
@ -632,6 +632,8 @@ static int mkv_write_header(AVFormatContext *s)
|
|||||||
// currently defined level 1 element
|
// currently defined level 1 element
|
||||||
mkv->main_seekhead = mkv_start_seekhead(pb, mkv->segment_offset, 10);
|
mkv->main_seekhead = mkv_start_seekhead(pb, mkv->segment_offset, 10);
|
||||||
mkv->cluster_seekhead = mkv_start_seekhead(pb, mkv->segment_offset, 0);
|
mkv->cluster_seekhead = mkv_start_seekhead(pb, mkv->segment_offset, 0);
|
||||||
|
if (mkv->main_seekhead == NULL || mkv->cluster_seekhead == NULL)
|
||||||
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
if (mkv_add_seekhead_entry(mkv->main_seekhead, MATROSKA_ID_INFO, url_ftell(pb)) < 0)
|
if (mkv_add_seekhead_entry(mkv->main_seekhead, MATROSKA_ID_INFO, url_ftell(pb)) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user