avauddec: Use proper version guard

Just like we do with avviddec

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5931>
This commit is contained in:
Edward Hervey 2024-01-17 17:24:49 +01:00 committed by Edward Hervey
parent e353fe8fcc
commit 978b75b18a

View file

@ -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++;