# HG changeset patch # User conrad # Date 1188951927 0 # Node ID 77d6661f1947a90eb605f4c543ff6c03e79220a5 # Parent b1cd4cd56eedbec2f57985208bd283f930bf121c Return AVERROR(ENOMEM) when appropriate diff -r b1cd4cd56eed -r 77d6661f1947 matroskaenc.c --- a/matroskaenc.c Wed Sep 05 00:25:24 2007 +0000 +++ b/matroskaenc.c Wed Sep 05 00:25:27 2007 +0000 @@ -270,7 +270,7 @@ 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 @@ 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 @@ mkv->cues = mkv_start_cues(mkv->segment_offset); if (mkv->cues == NULL) - return -1; + return AVERROR(ENOMEM); return 0; }