From 9d90dd583d66b06d059b544e25a3ef1b8ca8f0f6 Mon Sep 17 00:00:00 2001 From: aneejit1 Date: Sun, 8 May 2022 23:28:35 +0000 Subject: Correct API version check The version check for "av_register_all" is being performed against the AVCodec API. Correct it to the AVFormat API. Signed-off-by: aneejit1 --- plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/decoder/ffmpeg') diff --git a/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp b/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp index 2a113a1..4c4496b 100644 --- a/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp +++ b/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp @@ -448,7 +448,7 @@ bool K3bFFMpegFile::seek(const K3b::Msf &msf) { // // av_register_all is deprecated since ffmpeg 4.0, can be dropped K3bFFMpegWrapper::K3bFFMpegWrapper() { -#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58,9,100) +#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(58,9,100) ::av_register_all(); #endif } -- cgit v1.2.1