[FFmpeg-cvslog] r16636 - trunk/libavformat/aviobuf.c

reimar subversion
Fri Jan 16 16:35:51 CET 2009


Author: reimar
Date: Fri Jan 16 16:35:51 2009
New Revision: 16636

Log:
Return AVERROR(ENOMEM) instead of -1 when malloc fails in url_open_dyn_buf_internal

Modified:
   trunk/libavformat/aviobuf.c

Modified: trunk/libavformat/aviobuf.c
==============================================================================
--- trunk/libavformat/aviobuf.c	Fri Jan 16 16:34:37 2009	(r16635)
+++ trunk/libavformat/aviobuf.c	Fri Jan 16 16:35:51 2009	(r16636)
@@ -794,7 +794,7 @@ static int url_open_dyn_buf_internal(Byt
         return -1;
     d = av_mallocz(sizeof(DynBuffer) + io_buffer_size);
     if (!d)
-        return -1;
+        return AVERROR(ENOMEM);
     *s = av_mallocz(sizeof(ByteIOContext));
     if(!*s) {
         av_free(d);




More information about the ffmpeg-cvslog mailing list