Mercurial > libavformat.hg
comparison matroskaenc.c @ 2500:57954e76863d libavformat
Check that the seekheads were created
author | conrad |
---|---|
date | Wed, 05 Sep 2007 00:25:29 +0000 |
parents | 77d6661f1947 |
children | b91eb35b1237 |
comparison
equal
deleted
inserted
replaced
2499:77d6661f1947 | 2500:57954e76863d |
---|---|
630 // elements (including the seek head at the end of the file), which | 630 // elements (including the seek head at the end of the file), which |
631 // isn't more than 10 elements if we only write one of each other | 631 // isn't more than 10 elements if we only write one of each other |
632 // currently defined level 1 element | 632 // currently defined level 1 element |
633 mkv->main_seekhead = mkv_start_seekhead(pb, mkv->segment_offset, 10); | 633 mkv->main_seekhead = mkv_start_seekhead(pb, mkv->segment_offset, 10); |
634 mkv->cluster_seekhead = mkv_start_seekhead(pb, mkv->segment_offset, 0); | 634 mkv->cluster_seekhead = mkv_start_seekhead(pb, mkv->segment_offset, 0); |
635 if (mkv->main_seekhead == NULL || mkv->cluster_seekhead == NULL) | |
636 return AVERROR(ENOMEM); | |
635 | 637 |
636 if (mkv_add_seekhead_entry(mkv->main_seekhead, MATROSKA_ID_INFO, url_ftell(pb)) < 0) | 638 if (mkv_add_seekhead_entry(mkv->main_seekhead, MATROSKA_ID_INFO, url_ftell(pb)) < 0) |
637 return -1; | 639 return -1; |
638 | 640 |
639 segment_info = start_ebml_master(pb, MATROSKA_ID_INFO, 0); | 641 segment_info = start_ebml_master(pb, MATROSKA_ID_INFO, 0); |