[SCM] libav/experimental: Remove wrong and unnecessary condition. VHOOK filters are not special so they are not supposed to use the printf, fprintf, perror and puts functions but av_log instead.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:29:34 UTC 2013


The following commit has been merged in the experimental branch:
commit 6123abad2e852952567c648faae6c6056cc5cac7
Author: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Date:   Sat Sep 6 07:26:05 2008 +0000

    Remove wrong and unnecessary condition. VHOOK filters are not special
    so they are not supposed to use the printf, fprintf, perror and puts
    functions but av_log instead.
    
    Originally committed as revision 15221 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavutil/internal.h b/libavutil/internal.h
index 7d55ac6..0eb25d5 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -242,7 +242,7 @@ if((y)<(x)){\
 #define strcat strcat_is_forbidden_due_to_security_issues_use_av_strlcat
 #undef  exit
 #define exit exit_is_forbidden
-#if !(defined(LIBAVFORMAT_BUILD) || defined(FFMPEG_FRAMEHOOK_H))
+#ifndef LIBAVFORMAT_BUILD
 #undef  printf
 #define printf please_use_av_log
 #undef  fprintf

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list