fix: 修复mac编译不过

This commit is contained in:
rankun 2019-01-27 15:02:45 +08:00
parent 050d6af87d
commit 097dcb0b8a

View file

@ -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);