mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-10 09:09:50 +00:00
lavfi: fix use-after-free in ff_filter_frame.
Unlike the original ff_start_frame code, the incoming reference may be freed before that point. Fix CID966654.
This commit is contained in:
parent
315f15afe7
commit
ff6b34009d
@ -706,7 +706,7 @@ static int ff_filter_frame_framed(AVFilterLink *link, AVFilterBufferRef *frame)
|
|||||||
} else
|
} else
|
||||||
out = frame;
|
out = frame;
|
||||||
|
|
||||||
while(cmd && cmd->time <= frame->pts * av_q2d(link->time_base)){
|
while(cmd && cmd->time <= out->pts * av_q2d(link->time_base)){
|
||||||
av_log(link->dst, AV_LOG_DEBUG,
|
av_log(link->dst, AV_LOG_DEBUG,
|
||||||
"Processing command time:%f command:%s arg:%s\n",
|
"Processing command time:%f command:%s arg:%s\n",
|
||||||
cmd->time, cmd->command, cmd->arg);
|
cmd->time, cmd->command, cmd->arg);
|
||||||
|
Loading…
Reference in New Issue
Block a user