summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraneejit1 <aneejit1@gmail.com>2022-05-08 23:28:35 +0000
committerSlávek Banko <slavek.banko@axis.cz>2022-05-09 11:12:08 +0200
commitea1dbe7ba9eac4d7004f9aa9603398580c5ad47f (patch)
treedbd38d8644da84726775433dd32e21772a9ed13e
parentfad8c6359d53c5004bd3a80cbbccce89cf9fea6c (diff)
downloadk3b-r14.0.x.tar.gz
k3b-r14.0.x.zip
Correct API version checkr14.0.x
The version check for "av_register_all" is being performed against the AVCodec API. Correct it to the AVFormat API. Signed-off-by: aneejit1 <aneejit1@gmail.com> (cherry picked from commit 9d90dd583d66b06d059b544e25a3ef1b8ca8f0f6)
-rw-r--r--plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp2
1 files changed, 1 insertions, 1 deletions
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
}