int avfilter_graph_queue_command(AVFilterGraph *graph, const char *target, const char *command, const char *arg, int flags, double ts)
{
    int i;
    if(!graph)
        return 0;
    for (i = 0; i < graph->nb_filters; i++) {
        AVFilterContext *filter = graph->filters[i];
        if(filter && (!strcmp(target, "all") || !strcmp(target, filter->name) || !strcmp(target, filter->filter->name))){
            AVFilterCommand **queue = &filter->command_queue, *next;
            while (*queue && (*queue)->time <= ts)
                queue = &(*queue)->next;
            next = *queue;
            *queue = av_mallocz(sizeof(AVFilterCommand));
            (*queue)->command = av_strdup(command);
            (*queue)->arg     = av_strdup(arg);
            (*queue)->time    = ts;
            (*queue)->flags   = flags;
            (*queue)->next    = next;
            if(flags & AVFILTER_CMD_FLAG_ONE)
                return 0;
        }
    }
    return 0;
}
int avfilter_graph_queue_command(AVFilterGraph *graph, const char *target, const char *command, const char *arg, int flags, double ts)
{
    int i;
    if(!graph)
        return 0;
    for (i = 0; i < graph->nb_filters; i++) {
        AVFilterContext *filter = graph->filters[i];
        if(filter && (!strcmp(target, "all") || !strcmp(target, filter->name) || !strcmp(target, filter->filter->name))){
            AVFilterCommand **queue = &filter->command_queue, *next;
            while (*queue && (*queue)->time <= ts)
                queue = &(*queue)->next;
            next = *queue;
            *queue = av_mallocz(sizeof(AVFilterCommand));
            (*queue)->command = av_strdup(command);
            (*queue)->arg     = av_strdup(arg);
            (*queue)->time    = ts;
            (*queue)->flags   = flags;
            (*queue)->next    = next;
            if(flags & AVFILTER_CMD_FLAG_ONE)
                return 0;
        }
    }
    return 0;
}
int FUNC_0(AVFilterGraph *VAR_0, const char *VAR_1, const char *VAR_2, const char *VAR_3, int VAR_4, double VAR_5)
{
    int VAR_6;
    if(!VAR_0)
        return 0;
    for (VAR_6 = 0; VAR_6 < VAR_0->nb_filters; VAR_6++) {
        AVFilterContext *filter = VAR_0->filters[VAR_6];
        if(filter && (!strcmp(VAR_1, "all") || !strcmp(VAR_1, filter->name) || !strcmp(VAR_1, filter->filter->name))){
            AVFilterCommand **queue = &filter->command_queue, *next;
            while (*queue && (*queue)->time <= VAR_5)
                queue = &(*queue)->next;
            next = *queue;
            *queue = av_mallocz(sizeof(AVFilterCommand));
            (*queue)->VAR_2 = av_strdup(VAR_2);
            (*queue)->VAR_3     = av_strdup(VAR_3);
            (*queue)->time    = VAR_5;
            (*queue)->VAR_4   = VAR_4;
            (*queue)->next    = next;
            if(VAR_4 & AVFILTER_CMD_FLAG_ONE)
                return 0;
        }
    }
    return 0;
}
int FUNC_0(AVFilterGraph *VAR_0, const char *VAR_1, const char *VAR_2, const char *VAR_3, int VAR_4, double VAR_5)
{ int VAR_6; if(!VAR_0)
return 0; for (VAR_6 = 0; VAR_6 < VAR_0->nb_filters; VAR_6++) { AVFilterContext *filter = VAR_0->filters[VAR_6]; if(filter && (!strcmp(VAR_1, "all") || !strcmp(VAR_1, filter->name) || !strcmp(VAR_1, filter->filter->name))){ AVFilterCommand **queue = &filter->command_queue, *next; while (*queue && (*queue)->time <= VAR_5)
queue = &(*queue)->next; next = *queue; *queue = av_mallocz(sizeof(AVFilterCommand)); (*queue)->VAR_2 = av_strdup(VAR_2); (*queue)->VAR_3     = av_strdup(VAR_3); (*queue)->time    = VAR_5; (*queue)->VAR_4   = VAR_4; (*queue)->next    = next; if(VAR_4 & AVFILTER_CMD_FLAG_ONE)
return 0; } } return 0; }