[FFmpeg-cvslog] r11057 - trunk/libavutil/internal.h

lucabe subversion
Mon Nov 19 08:39:55 CET 2007


Author: lucabe
Date: Mon Nov 19 08:39:55 2007
New Revision: 11057

Log:
Remove perror() usage from libavutil


Modified:
   trunk/libavutil/internal.h

Modified: trunk/libavutil/internal.h
==============================================================================
--- trunk/libavutil/internal.h	(original)
+++ trunk/libavutil/internal.h	Mon Nov 19 08:39:55 2007
@@ -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;\
     }\
 }




More information about the ffmpeg-cvslog mailing list