提交 075077bd 编写于 作者: T tatowilson 提交者: Snorlax

When setPlayerOptionIntValue as 1 for key "videotoolbox" in IJKFFOptions...

When setPlayerOptionIntValue as 1 for key "videotoolbox" in IJKFFOptions object, it appears memory leak.
Also fix issue #1774 and #1751.
上级 3a8e8e61
......@@ -1178,6 +1178,7 @@ VideoToolBoxContext* videotoolbox_create(FFPlayer* ffp, AVCodecContext* avctx)
if (ret)
goto fail;
assert(context_vtb->fmt_desc.fmt_desc);
vtbformat_destroy(&context_vtb->fmt_desc);
context_vtb->vt_session = vtbsession_create(context_vtb);
if (context_vtb->vt_session == NULL)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册