Unified · Split
| @@ -566,9 +566,10 @@ void avfilter_start_frame(AVFilterLink *link, AVFilterBufferRef *picref) · 565 unmodified lines | ||
| 566 | 566 | else |
| 567 | 567 | link->cur_buf = picref; |
| 568 | 568 | |
| 569 | − if(cmd && cmd->time <= picref->pts * av_q2d(link->time_base)){ | |
| 569 | + while(cmd && cmd->time <= picref->pts * av_q2d(link->time_base)){ | |
| 570 | 570 | avfilter_process_command(link->dst, cmd->command, cmd->arg, 0, 0, cmd->flags); |
| 571 | 571 | command_queue_pop(link->dst); |
| 572 | + cmd= link->dst->command_queue; | |
| 572 | 573 | } |
| 573 | 574 | |
| 574 | 575 | start_frame(link, link->cur_buf); |