From 5c4c929878f46ac53382fc7e00cd01e7b0a5b3c8 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Fri, 10 May 2013 10:16:47 +0200 Subject: [PATCH] lavfi/avfiltergraph: fix style --- libavfilter/avfiltergraph.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c index c5a9e3b59d..959fbf7fa3 100644 --- a/libavfilter/avfiltergraph.c +++ b/libavfilter/avfiltergraph.c @@ -1081,24 +1081,24 @@ int avfilter_graph_send_command(AVFilterGraph *graph, const char *target, const { int i, r = AVERROR(ENOSYS); - if(!graph) + if (!graph) return r; - if((flags & AVFILTER_CMD_FLAG_ONE) && !(flags & AVFILTER_CMD_FLAG_FAST)) { - r=avfilter_graph_send_command(graph, target, cmd, arg, res, res_len, flags | AVFILTER_CMD_FLAG_FAST); - if(r != AVERROR(ENOSYS)) + if ((flags & AVFILTER_CMD_FLAG_ONE) && !(flags & AVFILTER_CMD_FLAG_FAST)) { + r = avfilter_graph_send_command(graph, target, cmd, arg, res, res_len, flags | AVFILTER_CMD_FLAG_FAST); + if (r != AVERROR(ENOSYS)) return r; } - if(res_len && res) - res[0]= 0; + if (res_len && res) + res[0] = 0; for (i = 0; i < graph->nb_filters; i++) { AVFilterContext *filter = graph->filters[i]; - if(!strcmp(target, "all") || (filter->name && !strcmp(target, filter->name)) || !strcmp(target, filter->filter->name)){ + if (!strcmp(target, "all") || (filter->name && !strcmp(target, filter->name)) || !strcmp(target, filter->filter->name)) { r = avfilter_process_command(filter, cmd, arg, res, res_len, flags); - if(r != AVERROR(ENOSYS)) { - if((flags & AVFILTER_CMD_FLAG_ONE) || r<0) + if (r != AVERROR(ENOSYS)) { + if ((flags & AVFILTER_CMD_FLAG_ONE) || r < 0) return r; } }