提交 b93e12fd 编写于 作者: A alexandru_mg3 提交者: Michael Niedermayer

ffplay: fix memleak if avfilter is disabled

上级 10ff2967
......@@ -1831,6 +1831,7 @@ static int video_thread(void *arg)
#else
ret = get_video_frame(is, frame, &pts_int, &pkt);
pos = pkt.pos;
av_free_packet(&pkt);
#endif
if (ret < 0) goto the_end;
......@@ -1841,9 +1842,7 @@ static int video_thread(void *arg)
pts = pts_int*av_q2d(is->video_st->time_base);
ret = queue_picture(is, frame, pts, pos);
#if !CONFIG_AVFILTER
av_free_packet(&pkt);
#endif
if (ret < 0)
goto the_end;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册