History

Fix style nits in avfiltergraph.c.

Originally committed as revision 26116 to svn://svn.ffmpeg.org/ffmpeg/trunk

Stefano Sabatini committed 15 years ago

Commit b59dd1e1 parent be732b71 file · +16 −16Browse files

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

Unified · Split

libavfilter/avfiltergraph.c+16−16
@@ -34,7 +34,7 @@ AVFilterGraph *avfilter_graph_alloc(void) · 33 unmodified lines
3434
3535 void avfilter_graph_free(AVFilterGraph *graph)
3636 {
37− for(; graph->filter_count > 0; graph->filter_count --)
37+ for (; graph->filter_count > 0; graph->filter_count --)
3838 avfilter_free(graph->filters[graph->filter_count - 1]);
3939 av_freep(&graph->scale_sws_opts);
4040 av_freep(&graph->filters);
@@ -79,7 +79,7 @@ int ff_avfilter_graph_check_validity(AVFilterGraph *graph, AVClass *log_ctx) · 38 unmodified lines
7979 AVFilterContext *filt;
8080 int i, j;
8181
82− for (i=0; i < graph->filter_count; i++) {
82+ for (i = 0; i < graph->filter_count; i++) {
8383 filt = graph->filters[i];
8484
8585 for (j = 0; j < filt->input_count; j++) {
@@ -125,8 +125,8 @@ AVFilterContext *avfilter_graph_get_filter(AVFilterGraph *graph, char *name) · 39 unmodified lines
125125 {
126126 int i;
127127
128− for(i = 0; i < graph->filter_count; i ++)
129− if(graph->filters[i]->name && !strcmp(name, graph->filters[i]->name))
128+ for (i = 0; i < graph->filter_count; i++)
129+ if (graph->filters[i]->name && !strcmp(name, graph->filters[i]->name))
130130 return graph->filters[i];
131131
132132 return NULL;
@@ -139,22 +139,22 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx) · 6 unmodified lines
139139 char inst_name[30];
140140
141141 /* ask all the sub-filters for their supported media formats */
142− for(i = 0; i < graph->filter_count; i ++) {
143− if(graph->filters[i]->filter->query_formats)
142+ for (i = 0; i < graph->filter_count; i++) {
143+ if (graph->filters[i]->filter->query_formats)
144144 graph->filters[i]->filter->query_formats(graph->filters[i]);
145145 else
146146 avfilter_default_query_formats(graph->filters[i]);
147147 }
148148
149149 /* go through and merge as many format lists as possible */
150− for(i = 0; i < graph->filter_count; i ++) {
150+ for (i = 0; i < graph->filter_count; i++) {
151151 AVFilterContext *filter = graph->filters[i];
152152
153− for(j = 0; j < filter->input_count; j ++) {
153+ for (j = 0; j < filter->input_count; j++) {
154154 AVFilterLink *link = filter->inputs[j];
155− if(link && link->in_formats != link->out_formats) {
156− if(!avfilter_merge_formats(link->in_formats,
157− link->out_formats)) {
155+ if (link && link->in_formats != link->out_formats) {
156+ if (!avfilter_merge_formats(link->in_formats,
157+ link->out_formats)) {
158158 AVFilterContext *scale;
159159 char scale_args[256];
160160 /* couldn't merge format lists. auto-insert scale filter */
@@ -187,7 +187,7 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx) · 26 unmodified lines
187187
188188 static void pick_format(AVFilterLink *link)
189189 {
190− if(!link || !link->in_formats)
190+ if (!link || !link->in_formats)
191191 return;
192192
193193 link->in_formats->format_count = 1;
@@ -201,12 +201,12 @@ static void pick_formats(AVFilterGraph *graph) · 7 unmodified lines
201201 {
202202 int i, j;
203203
204− for(i = 0; i < graph->filter_count; i ++) {
204+ for (i = 0; i < graph->filter_count; i++) {
205205 AVFilterContext *filter = graph->filters[i];
206206
207− for(j = 0; j < filter->input_count; j ++)
207+ for (j = 0; j < filter->input_count; j++)
208208 pick_format(filter->inputs[j]);
209− for(j = 0; j < filter->output_count; j ++)
209+ for (j = 0; j < filter->output_count; j++)
210210 pick_format(filter->outputs[j]);
211211 }
212212 }
@@ -214,7 +214,7 @@ static void pick_formats(AVFilterGraph *graph) · 1 unmodified line
214214 int ff_avfilter_graph_config_formats(AVFilterGraph *graph, AVClass *log_ctx)
215215 {
216216 /* find supported formats from sub-filters, and merge along links */
217− if(query_formats(graph, log_ctx))
217+ if (query_formats(graph, log_ctx))
218218 return -1;
219219
220220 /* Once everything is merged, it's possible that we'll still have

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