[SCM] libav/experimental: Remove perror() usage from libavutil

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:09:37 UTC 2013


The following commit has been merged in the experimental branch:
commit 7f0cd6a5293ff7608b3725f4dcc6ad141030cc4f
Author: Luca Abeni <lucabe72 at email.it>
Date:   Mon Nov 19 07:39:55 2007 +0000

    Remove perror() usage from libavutil
    
    Originally committed as revision 11057 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavutil/internal.h b/libavutil/internal.h
index 75a6e01..2ed5719 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;\
     }\
 }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list