[FFmpeg-cvslog] r10368 - trunk/libavformat/matroskaenc.c

conrad subversion
Wed Sep 5 02:25:27 CEST 2007


Author: conrad
Date: Wed Sep  5 02:25:27 2007
New Revision: 10368

Log:
Return AVERROR(ENOMEM) when appropriate


Modified:
   trunk/libavformat/matroskaenc.c

Modified: trunk/libavformat/matroskaenc.c
==============================================================================
--- trunk/libavformat/matroskaenc.c	(original)
+++ trunk/libavformat/matroskaenc.c	Wed Sep  5 02:25:27 2007
@@ -270,7 +270,7 @@ static int mkv_add_seekhead_entry(mkv_se
 
     entries = av_realloc(entries, (seekhead->num_entries + 1) * sizeof(mkv_seekhead_entry));
     if (entries == NULL)
-        return -1;
+        return AVERROR(ENOMEM);
 
     entries[new_entry].elementid = elementid;
     entries[new_entry].segmentpos = filepos - seekhead->segment_offset;
@@ -345,7 +345,7 @@ static int mkv_add_cuepoint(mkv_cues *cu
 
     entries = av_realloc(entries, (cues->num_entries + 1) * sizeof(mkv_cuepoint));
     if (entries == NULL)
-        return -1;
+        return AVERROR(ENOMEM);
 
     entries[new_entry].pts = pkt->pts;
     entries[new_entry].tracknum = pkt->stream_index + 1;
@@ -668,7 +668,7 @@ static int mkv_write_header(AVFormatCont
 
     mkv->cues = mkv_start_cues(mkv->segment_offset);
     if (mkv->cues == NULL)
-        return -1;
+        return AVERROR(ENOMEM);
 
     return 0;
 }




More information about the ffmpeg-cvslog mailing list