changeset 3162:5e03e5577f79 libavformat

return ENOMEM
author bcoudurier
date Fri, 21 Mar 2008 10:48:22 +0000
parents 60be75aa8c47
children b8c9d2e2b227
files mov.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mov.c	Fri Mar 21 10:47:14 2008 +0000
+++ b/mov.c	Fri Mar 21 10:48:22 2008 +0000
@@ -1202,7 +1202,7 @@
     int ret;
 
     st = av_new_stream(c->fc, c->fc->nb_streams);
-    if (!st) return -2;
+    if (!st) return AVERROR(ENOMEM);
     sc = av_mallocz(sizeof(MOVStreamContext));
     if (!sc) return AVERROR(ENOMEM);