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;
_______________________________________________
FFmpeg-soc mailing list
[email protected]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to