]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/audioconvert.c
lavd/pulse_audio_enc: fix flush return code
[ffmpeg] / libavcodec / audioconvert.c
index 5d8a3485e69a6887baa4e5c00a5d0cc1ab1e1421..5e46fae2df5f3c990a48b1cde3dd72c4921045da 100644 (file)
@@ -32,6 +32,8 @@
 #include "avcodec.h"
 #include "audioconvert.h"
 
+#if FF_API_AUDIO_CONVERT
+
 struct AVAudioConvert {
     int in_channels, out_channels;
     int fmt_pair;
@@ -114,3 +116,5 @@ if(ctx->fmt_pair == ofmt + AV_SAMPLE_FMT_NB*ifmt){\
     }
     return 0;
 }
+
+#endif /* FF_API_AUDIO_CONVERT */