mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-03 06:08:39 +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;
|
AVFormatContext *formatCtx = Q_NULLPTR;
|
||||||
AVCodec *codec = Q_NULLPTR;
|
AVCodec *codec = Q_NULLPTR;
|
||||||
AVCodecContext *codecCtx = Q_NULLPTR;
|
AVCodecContext *codecCtx = Q_NULLPTR;
|
||||||
|
ReadPacketFunc readPacket = Q_NULLPTR;
|
||||||
bool isFormatCtxOpen = false;
|
bool isFormatCtxOpen = false;
|
||||||
bool isCodecCtxOpen = false;
|
bool isCodecCtxOpen = false;
|
||||||
|
|
||||||
|
@ -236,7 +237,7 @@ void Decoder::run()
|
||||||
m_receiverState.remaining = 0;
|
m_receiverState.remaining = 0;
|
||||||
|
|
||||||
// if recording is enabled, a "header" is sent between raw packets
|
// if recording is enabled, a "header" is sent between raw packets
|
||||||
ReadPacketFunc readPacket = m_recorder ? readPacketWithMeta: readRawPacket;
|
readPacket = m_recorder ? readPacketWithMeta: readRawPacket;
|
||||||
|
|
||||||
// io context
|
// io context
|
||||||
avioCtx = avio_alloc_context(decoderBuffer, BUFSIZE, 0, this, readPacket, NULL, NULL);
|
avioCtx = avio_alloc_context(decoderBuffer, BUFSIZE, 0, this, readPacket, NULL, NULL);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue