diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2006-04-21 23:15:44 +0000 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2006-04-21 23:15:44 +0000 |
commit | 65d46d7e0123cf42b5c98f633bd41c90acaa180d (patch) | |
tree | 0912efb8d0496428f015fdc8de81db135e44e65d /src/libffmpeg | |
parent | c707fe990cb23300de76b7a5728a543105283ddb (diff) | |
download | xine-lib-65d46d7e0123cf42b5c98f633bd41c90acaa180d.tar.gz xine-lib-65d46d7e0123cf42b5c98f633bd41c90acaa180d.tar.bz2 |
Add printf format attributes.
CVS patchset: 7977
CVS date: 2006/04/21 23:15:44
Diffstat (limited to 'src/libffmpeg')
-rw-r--r-- | src/libffmpeg/diff_to_ffmpeg_cvs.txt | 20 | ||||
-rw-r--r-- | src/libffmpeg/libavcodec/interplayvideo.c | 6 |
2 files changed, 25 insertions, 1 deletions
diff --git a/src/libffmpeg/diff_to_ffmpeg_cvs.txt b/src/libffmpeg/diff_to_ffmpeg_cvs.txt index 329714dda..3ab1779fe 100644 --- a/src/libffmpeg/diff_to_ffmpeg_cvs.txt +++ b/src/libffmpeg/diff_to_ffmpeg_cvs.txt @@ -67,6 +67,26 @@ diff -u -r1.127 dsputil.h //#define DEBUG /* dct code */ +Index: libavcodec/interplayvideo.c +=================================================================== +RCS file: /cvsroot/xine/xine-lib/src/libffmpeg/libavcodec/interplayvideo.c,v +retrieving revision 1.5 +diff -u -r1.5 interplayvideo.c +--- src/libffmpeg/libavcodec/interplayvideo.c 5 Feb 2006 14:11:35 -0000 1.5 ++++ src/libffmpeg/libavcodec/interplayvideo.c 21 Apr 2006 22:48:33 -0000 +@@ -49,7 +49,11 @@ + #if DEBUG_INTERPLAY + #define debug_interplay(x,...) av_log(NULL, AV_LOG_DEBUG, x, __VA_ARGS__) + #else +-static inline void debug_interplay(const char *format, ...) { } ++static inline void ++#ifdef __GNUC__ ++__attribute__ ((__format__ (__printf__, 1, 2))) ++#endif ++debug_interplay(const char *format, ...) { } + #endif + + typedef struct IpvideoContext { Index: libavcodec/motion_est.c =================================================================== RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/motion_est.c,v diff --git a/src/libffmpeg/libavcodec/interplayvideo.c b/src/libffmpeg/libavcodec/interplayvideo.c index 73165e795..588485a0a 100644 --- a/src/libffmpeg/libavcodec/interplayvideo.c +++ b/src/libffmpeg/libavcodec/interplayvideo.c @@ -49,7 +49,11 @@ #if DEBUG_INTERPLAY #define debug_interplay(x,...) av_log(NULL, AV_LOG_DEBUG, x, __VA_ARGS__) #else -static inline void debug_interplay(const char *format, ...) { } +static inline void +#ifdef __GNUC__ +__attribute__ ((__format__ (__printf__, 1, 2))) +#endif +debug_interplay(const char *format, ...) { } #endif typedef struct IpvideoContext { |