[FFmpeg-devel] [PATCH 2/3] lavfi/avcodec: fix API version checks

Hendrik Leppkes h.leppkes at gmail.com
Wed Mar 13 21:01:26 CET 2013


---
 libavfilter/avcodec.c | 2 +-
 libavfilter/avcodec.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/avcodec.c b/libavfilter/avcodec.c
index c902f98..27963f5 100644
--- a/libavfilter/avcodec.c
+++ b/libavfilter/avcodec.c
@@ -134,7 +134,7 @@ int avfilter_copy_buf_props(AVFrame *dst, const AVFilterBufferRef *src)
     return 0;
 }
 
-#ifdef FF_API_FILL_FRAME
+#if FF_API_FILL_FRAME
 int avfilter_fill_frame_from_audio_buffer_ref(AVFrame *frame,
                                               const AVFilterBufferRef *samplesref)
 {
diff --git a/libavfilter/avcodec.h b/libavfilter/avcodec.h
index 6be51f4..4c66035 100644
--- a/libavfilter/avcodec.h
+++ b/libavfilter/avcodec.h
@@ -58,7 +58,7 @@ AVFilterBufferRef *avfilter_get_buffer_ref_from_frame(enum AVMediaType type,
                                                       const AVFrame *frame,
                                                       int perms);
 
-#ifdef FF_API_FILL_FRAME
+#if FF_API_FILL_FRAME
 /**
  * Fill an AVFrame with the information stored in samplesref.
  *
-- 
1.8.0.msysgit.0



More information about the ffmpeg-devel mailing list