diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-02-15 21:40:46 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-02-15 21:40:46 +0000 |
commit | e079d22ea2f0861ff5b658968abd49908da06edc (patch) | |
tree | 38693265683a5812d8eb32f38569c91cede385f4 /libavfilter | |
parent | 02e94797179b1059f1a0ba4f498ae97d050db14f (diff) | |
download | ffmpeg-e079d22ea2f0861ff5b658968abd49908da06edc.tar.gz |
Coding style changes
Commited in SoC by Vitor Sessak on 2008-02-09 23:43:45
Originally committed as revision 12045 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/avfilter.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index c710d75913..c2852d04a9 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -44,7 +44,7 @@ AVFilterPicRef *avfilter_ref_pic(AVFilterPicRef *ref, int pmask) void avfilter_unref_pic(AVFilterPicRef *ref) { - if(-- ref->pic->refcount == 0) + if(!(--ref->pic->refcount)) ref->pic->free(ref->pic); av_free(ref); } @@ -126,9 +126,9 @@ int avfilter_config_links(AVFilterContext *filter) unsigned 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) { case AVLINK_INIT: @@ -410,10 +410,10 @@ void avfilter_destroy(AVFilterContext *filter) int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque) { - int ret; + int ret=0; if(filter->filter->init) - if((ret = filter->filter->init(filter, args, opaque))) return ret; - return 0; + ret = filter->filter->init(filter, args, opaque); + return ret; } |