[FFmpeg-cvslog] r13345 - trunk/libavfilter/graphparser.c
vitor
subversion
Sat May 24 22:41:48 CEST 2008
Author: vitor
Date: Sat May 24 22:41:48 2008
New Revision: 13345
Log:
Cosmetics: split setting a var and checking for error
Commited in SoC by Vitor Sessak on 2008-05-24 13:03:07
Modified:
trunk/libavfilter/graphparser.c
Modified: trunk/libavfilter/graphparser.c
==============================================================================
--- trunk/libavfilter/graphparser.c (original)
+++ trunk/libavfilter/graphparser.c Sat May 24 22:41:48 2008
@@ -129,13 +129,16 @@ static AVFilterContext *create_filter(AV
snprintf(inst_name, sizeof(inst_name), "Parsed filter %d", index);
- if(!(filterdef = avfilter_get_by_name(name))) {
+ filterdef = avfilter_get_by_name(name);
+
+ if(!filterdef) {
av_log(log_ctx, AV_LOG_ERROR,
"no such filter: '%s'\n", name);
return NULL;
}
- if(!(filt = avfilter_open(filterdef, inst_name))) {
+ filt = avfilter_open(filterdef, inst_name);
+ if(!filt) {
av_log(log_ctx, AV_LOG_ERROR,
"error creating filter '%s'\n", name);
return NULL;
@@ -362,7 +365,9 @@ int avfilter_parse_graph(AVFilterGraph *
if(pad < 0)
goto fail;
- if(!(filter = parse_filter(&filters, graph, index, log_ctx)))
+ filter = parse_filter(&filters, graph, index, log_ctx);
+
+ if(!filter)
goto fail;
if(filter->input_count == 1 && !currInputs && !index) {
More information about the ffmpeg-cvslog
mailing list