Remove perror() usage from libavutil
authorLuca Abeni <lucabe72@email.it>
Mon, 19 Nov 2007 07:39:55 +0000 (07:39 +0000)
committerLuca Abeni <lucabe72@email.it>
Mon, 19 Nov 2007 07:39:55 +0000 (07:39 +0000)
Originally committed as revision 11057 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavutil/internal.h

index 75a6e01..2ed5719 100644 (file)
@@ -263,7 +263,7 @@ if((y)<(x)){\
 {\
     p= av_mallocz(size);\
     if(p==NULL && (size)!=0){\
-        perror("malloc");\
+        av_log(NULL, AV_LOG_ERROR, "Cannot allocate memory.");\
         goto fail;\
     }\
 }