From 978b75b18aa7190f5e9aff8306a6ae644f6a4b9e Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Wed, 17 Jan 2024 17:24:49 +0100 Subject: [PATCH] avauddec: Use proper version guard Just like we do with avviddec Part-of: --- subprojects/gst-libav/ext/libav/gstavauddec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-libav/ext/libav/gstavauddec.c b/subprojects/gst-libav/ext/libav/gstavauddec.c index 422c8b449c..3f711d8a29 100644 --- a/subprojects/gst-libav/ext/libav/gstavauddec.c +++ b/subprojects/gst-libav/ext/libav/gstavauddec.c @@ -590,7 +590,7 @@ gst_ffmpegauddec_frame (GstFFMpegAudDec * ffmpegdec, GstFlowReturn * ret, goto no_codec; *ret = GST_FLOW_OK; -#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(60, 2, 100) +#if LIBAVCODEC_VERSION_MAJOR >= 60 ffmpegdec->context->frame_num++; #else ffmpegdec->context->frame_number++;