mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-20 11:35:56 +00:00
fix: 修复mac编译不过
This commit is contained in:
parent
050d6af87d
commit
097dcb0b8a
1 changed files with 2 additions and 1 deletions
|
@ -221,6 +221,7 @@ void Decoder::run()
|
|||
AVFormatContext *formatCtx = Q_NULLPTR;
|
||||
AVCodec *codec = Q_NULLPTR;
|
||||
AVCodecContext *codecCtx = Q_NULLPTR;
|
||||
ReadPacketFunc readPacket = Q_NULLPTR;
|
||||
bool isFormatCtxOpen = false;
|
||||
bool isCodecCtxOpen = false;
|
||||
|
||||
|
@ -236,7 +237,7 @@ void Decoder::run()
|
|||
m_receiverState.remaining = 0;
|
||||
|
||||
// if recording is enabled, a "header" is sent between raw packets
|
||||
ReadPacketFunc readPacket = m_recorder ? readPacketWithMeta: readRawPacket;
|
||||
readPacket = m_recorder ? readPacketWithMeta: readRawPacket;
|
||||
|
||||
// io context
|
||||
avioCtx = avio_alloc_context(decoderBuffer, BUFSIZE, 0, this, readPacket, NULL, NULL);
|
||||
|
|
Loading…
Add table
Reference in a new issue