diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2013-05-10 10:16:47 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-05-10 10:33:00 +0200 |
commit | 5c4c929878f46ac53382fc7e00cd01e7b0a5b3c8 (patch) | |
tree | 9663747f76f672434b125c7281c012946650e634 /libavfilter/avfiltergraph.c | |
parent | e1332ff324e948e7c710636581d8c3512773fc65 (diff) | |
download | ffmpeg-5c4c929878f46ac53382fc7e00cd01e7b0a5b3c8.tar.gz |
lavfi/avfiltergraph: fix style
Diffstat (limited to 'libavfilter/avfiltergraph.c')
-rw-r--r-- | libavfilter/avfiltergraph.c | 18 |
1 files 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; } } |