changeset 5148:74d599c373f9 libavformat

return AVERROR(ENOMEM) if stream could not be allocated
author bcoudurier
date Tue, 25 Aug 2009 19:59:38 +0000
parents 64ad0b0e120d
children 4a53fcd622ea
files r3d.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/r3d.c	Tue Aug 25 19:58:21 2009 +0000
+++ b/r3d.c	Tue Aug 25 19:59:38 2009 +0000
@@ -55,7 +55,7 @@
     int tmp, tmp2;
 
     if (!st)
-        return -1;
+        return AVERROR(ENOMEM);
     st->codec->codec_type = CODEC_TYPE_VIDEO;
     st->codec->codec_id = CODEC_ID_JPEG2000;