History

avfilter: fix processing multiple commands per frame and filter

Michael Niedermayer committed 15 years ago

Commit 37f9de51 parent 50be0b91 file · +2 −1Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/avfilter.c+2−1
@@ -566,9 +566,10 @@ void avfilter_start_frame(AVFilterLink *link, AVFilterBufferRef *picref) · 565 unmodified lines
566566 else
567567 link->cur_buf = picref;
568568
569− if(cmd && cmd->time <= picref->pts * av_q2d(link->time_base)){
569+ while(cmd && cmd->time <= picref->pts * av_q2d(link->time_base)){
570570 avfilter_process_command(link->dst, cmd->command, cmd->arg, 0, 0, cmd->flags);
571571 command_queue_pop(link->dst);
572+ cmd= link->dst->command_queue;
572573 }
573574
574575 start_frame(link, link->cur_buf);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t