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 <aneejit1@gmail.com>
(cherry picked from commit 9d90dd583d)
r14.0.x
aneejit1 3 years ago committed by Slávek Banko
parent fad8c6359d
commit ea1dbe7ba9
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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
}

Loading…
Cancel
Save