提交 f9562f53 编写于 作者: R Romain Vimont

Unref the packet on error

Do not leak the packet data on error.
上级 a34fbd23
......@@ -106,6 +106,7 @@ static int run_decoder(void *data) {
push_frame(decoder);
} else if (ret != AVERROR(EAGAIN)) {
LOGE("Could not receive video frame: %d", ret);
av_packet_unref(&packet);
goto run_quit;
}
#else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册