mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-04-23 23:46:41 +00:00
avfilter: fix processing multiple commands per frame and filter
Found-by: Nicolas George Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
50be0b911a
commit
37f9de59d1
@ -566,9 +566,10 @@ void avfilter_start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
|
|||||||
else
|
else
|
||||||
link->cur_buf = picref;
|
link->cur_buf = picref;
|
||||||
|
|
||||||
if(cmd && cmd->time <= picref->pts * av_q2d(link->time_base)){
|
while(cmd && cmd->time <= picref->pts * av_q2d(link->time_base)){
|
||||||
avfilter_process_command(link->dst, cmd->command, cmd->arg, 0, 0, cmd->flags);
|
avfilter_process_command(link->dst, cmd->command, cmd->arg, 0, 0, cmd->flags);
|
||||||
command_queue_pop(link->dst);
|
command_queue_pop(link->dst);
|
||||||
|
cmd= link->dst->command_queue;
|
||||||
}
|
}
|
||||||
|
|
||||||
start_frame(link, link->cur_buf);
|
start_frame(link, link->cur_buf);
|
||||||
|
Loading…
Reference in New Issue
Block a user