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_; QByteArray audioData_;
QDataStream audioDataStream_; QDataStream audioDataStream_;
AVFormatContext * formatContext_; AVFormatContext * formatContext_;
#if LIBAVCODEC_VERSION_MAJOR < 59
AVCodec * codec_; AVCodec * codec_;
#else
const AVCodec * codec_;
#endif
AVCodecContext * codecContext_; AVCodecContext * codecContext_;
AVIOContext * avioContext_; AVIOContext * avioContext_;
AVStream * audioStream_; AVStream * audioStream_;