Commit baa966e6 authored by vitor's avatar vitor

Coding style changes

Commited in SoC by Vitor Sessak on 2008-02-09 23:43:45


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12045 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 62fd2abb
...@@ -44,7 +44,7 @@ AVFilterPicRef *avfilter_ref_pic(AVFilterPicRef *ref, int pmask) ...@@ -44,7 +44,7 @@ AVFilterPicRef *avfilter_ref_pic(AVFilterPicRef *ref, int pmask)
void avfilter_unref_pic(AVFilterPicRef *ref) void avfilter_unref_pic(AVFilterPicRef *ref)
{ {
if(-- ref->pic->refcount == 0) if(!(--ref->pic->refcount))
ref->pic->free(ref->pic); ref->pic->free(ref->pic);
av_free(ref); av_free(ref);
} }
...@@ -126,9 +126,9 @@ int avfilter_config_links(AVFilterContext *filter) ...@@ -126,9 +126,9 @@ int avfilter_config_links(AVFilterContext *filter)
unsigned i; unsigned i;
for(i = 0; i < filter->input_count; i ++) { for(i = 0; i < filter->input_count; i ++) {
AVFilterLink *link; AVFilterLink *link = filter->inputs[i];
if(!(link = filter->inputs[i])) continue; if(!link) continue;
switch(link->init_state) { switch(link->init_state) {
case AVLINK_INIT: case AVLINK_INIT:
...@@ -410,10 +410,10 @@ void avfilter_destroy(AVFilterContext *filter) ...@@ -410,10 +410,10 @@ void avfilter_destroy(AVFilterContext *filter)
int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque) int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque)
{ {
int ret; int ret=0;
if(filter->filter->init) if(filter->filter->init)
if((ret = filter->filter->init(filter, args, opaque))) return ret; ret = filter->filter->init(filter, args, opaque);
return 0; return ret;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment