]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/resample2.c
lavc: add a wrapper for AVCodecContext.get_buffer().
[ffmpeg] / libavcodec / resample2.c
index 79e6279ff06248850132f6239ec8169d550e8daa..c6e5c48c1b7def8a26bb7cc1fb5e942390a27728 100644 (file)
@@ -29,6 +29,8 @@
 #include "dsputil.h"
 #include "libavutil/common.h"
 
+#if FF_API_AVCODEC_RESAMPLE
+
 #ifndef CONFIG_RESAMPLE_HP
 #define FILTER_SHIFT 15
 
@@ -319,3 +321,5 @@ av_log(NULL, AV_LOG_DEBUG, "%d %d %d\n", c->dst_incr, c->ideal_dst_incr, c->comp
 
     return dst_index;
 }
+
+#endif