Merge pull request #23 from MikeWalrus/master

add support for ffmpeg 5.0
This commit is contained in:
xiaoyifang 2022-02-20 15:09:11 +08:00 committed by GitHub
commit bd2afff4da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,7 +91,11 @@ struct DecoderContext
QByteArray audioData_;
QDataStream audioDataStream_;
AVFormatContext * formatContext_;
#if LIBAVCODEC_VERSION_MAJOR < 59
AVCodec * codec_;
#else
const AVCodec * codec_;
#endif
AVCodecContext * codecContext_;
AVIOContext * avioContext_;
AVStream * audioStream_;