Commit a5ba0717 authored by vitor's avatar vitor

Better instance name for parsed filters

Commited in SoC by Vitor Sessak on 2008-04-06 18:19:09


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13291 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9cbeb9df
...@@ -47,9 +47,9 @@ static AVFilterContext *create_filter(AVFilterGraph *ctx, int index, ...@@ -47,9 +47,9 @@ static AVFilterContext *create_filter(AVFilterGraph *ctx, int index,
AVFilterContext *filt; AVFilterContext *filt;
AVFilter *filterdef; AVFilter *filterdef;
char tmp[20]; char inst_name[30];
snprintf(tmp, 20, "%d", index); snprintf(inst_name, sizeof(inst_name), "Parsed filter %d", index);
if(!(filterdef = avfilter_get_by_name(name))) { if(!(filterdef = avfilter_get_by_name(name))) {
av_log(&log_ctx, AV_LOG_ERROR, av_log(&log_ctx, AV_LOG_ERROR,
...@@ -57,7 +57,7 @@ static AVFilterContext *create_filter(AVFilterGraph *ctx, int index, ...@@ -57,7 +57,7 @@ static AVFilterContext *create_filter(AVFilterGraph *ctx, int index,
return NULL; return NULL;
} }
if(!(filt = avfilter_open(filterdef, tmp))) { if(!(filt = avfilter_open(filterdef, inst_name))) {
av_log(&log_ctx, AV_LOG_ERROR, av_log(&log_ctx, AV_LOG_ERROR,
"error creating filter '%s'\n", name); "error creating filter '%s'\n", name);
return NULL; return NULL;
......
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