[FFmpeg-soc] [soc]: r1083 - matroska/matroskaenc.c

conrad subversion at mplayerhq.hu
Mon Aug 20 21:51:40 CEST 2007


Author: conrad
Date: Mon Aug 20 21:51:39 2007
New Revision: 1083

Log:
Check that the seekheads were created


Modified:
   matroska/matroskaenc.c

Modified: matroska/matroskaenc.c
==============================================================================
--- matroska/matroskaenc.c	(original)
+++ matroska/matroskaenc.c	Mon Aug 20 21:51:39 2007
@@ -632,6 +632,8 @@ static int mkv_write_header(AVFormatCont
     // currently defined level 1 element
     mkv->main_seekhead    = mkv_start_seekhead(pb, mkv->segment_offset, 10);
     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)
         return -1;



More information about the FFmpeg-soc mailing list