# HG changeset patch # User lucabe # Date 1195457995 0 # Node ID eea6f94a791baaa0de56c46437e179d326752dba # Parent 07e9512426171f477bdfe7355dbf541d7a28aa1c Remove perror() usage from libavutil diff -r 07e951242617 -r eea6f94a791b internal.h --- 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;\ }\ }