Commit fcec5f2c authored by Antonio Rojas's avatar Antonio Rojas
Browse files

Fix build with FFmpeg 5

AVCodec is const in FFmpeg 5

BUG: 448776
(cherry picked from commit d27049f9)
parent 7d67ab4b
Pipeline #151708 skipped
......@@ -57,7 +57,11 @@ private:
int m_VideoStream;
AVFormatContext* m_pFormatContext;
AVCodecContext* m_pVideoCodecContext;
#if LIBAVCODEC_VERSION_MAJOR < 59
AVCodec* m_pVideoCodec;
#else
const AVCodec* m_pVideoCodec;
#endif
AVStream* m_pVideoStream;
AVFrame* m_pFrame;
quint8* m_pFrameBuffer;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment