]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/utils.c
add FF_API_AUDIO_OLD define to disable the deprecated decode_audio API
[ffmpeg] / libavcodec / utils.c
index 7edff412ece729756ef9ee440cd1a709634fb5d3..69439b896b879e6418a9bed7db2ddef7ade64e8a 100644 (file)
@@ -630,7 +630,7 @@ int attribute_align_arg avcodec_decode_video2(AVCodecContext *avctx, AVFrame *pi
     return ret;
 }
 
-#if LIBAVCODEC_VERSION_MAJOR < 53
+#if FF_API_AUDIO_OLD
 int attribute_align_arg avcodec_decode_audio2(AVCodecContext *avctx, int16_t *samples,
                          int *frame_size_ptr,
                          const uint8_t *buf, int buf_size)