From 7f0cd6a5293ff7608b3725f4dcc6ad141030cc4f Mon Sep 17 00:00:00 2001 From: Luca Abeni Date: Mon, 19 Nov 2007 07:39:55 +0000 Subject: [PATCH] Remove perror() usage from libavutil Originally committed as revision 11057 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/internal.h b/libavutil/internal.h index 75a6e012df..2ed571978a 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -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;\ }\ }