changeset 402:eea6f94a791b libavutil

Remove perror() usage from libavutil
author lucabe
date Mon, 19 Nov 2007 07:39:55 +0000
parents 07e951242617
children c22fbe7d64cf
files internal.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/internal.h	Thu Nov 08 11:59:39 2007 +0000
+++ b/internal.h	Mon Nov 19 07:39:55 2007 +0000
@@ -263,7 +263,7 @@
 {\
     p= av_mallocz(size);\
     if(p==NULL && (size)!=0){\
-        perror("malloc");\
+        av_log(NULL, AV_LOG_ERROR, "Cannot allocate memory.");\
         goto fail;\
     }\
 }