Use av_packet_alloc() instead of av_init_packet()

sizeof(AVPacket) may be deprecated from ABI in the near future
This commit is contained in:
Cameron Gutman
2021-03-05 17:47:04 -06:00
parent c330898aeb
commit 96f79688dd
2 changed files with 17 additions and 16 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ private:
enum AVPixelFormat ffGetFormat(AVCodecContext* context,
const enum AVPixelFormat* pixFmts);
AVPacket m_Pkt;
AVPacket* m_Pkt;
AVCodecContext* m_VideoDecoderCtx;
QByteArray m_DecodeBuffer;
const AVCodecHWConfig* m_HwDecodeCfg;