diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-05-24 20:39:05 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-05-24 20:39:05 +0000 |
commit | 58a2d7a5c27649381f2f205e41942f1de346c39f (patch) | |
tree | 4135db2e3662d3490894a19617affdf0a0e1e65c /libavfilter | |
parent | ee75692a5fcdb3c941a3df811489d3797501d2e7 (diff) | |
download | ffmpeg-58a2d7a5c27649381f2f205e41942f1de346c39f.tar.gz |
Better instance name for parsed filters
Commited in SoC by Vitor Sessak on 2008-04-06 18:19:09
Originally committed as revision 13291 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/graphparser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c index f76883d9b6..9e7aa41938 100644 --- a/libavfilter/graphparser.c +++ b/libavfilter/graphparser.c @@ -47,9 +47,9 @@ static AVFilterContext *create_filter(AVFilterGraph *ctx, int index, AVFilterContext *filt; 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))) { av_log(&log_ctx, AV_LOG_ERROR, @@ -57,7 +57,7 @@ static AVFilterContext *create_filter(AVFilterGraph *ctx, int index, return NULL; } - if(!(filt = avfilter_open(filterdef, tmp))) { + if(!(filt = avfilter_open(filterdef, inst_name))) { av_log(&log_ctx, AV_LOG_ERROR, "error creating filter '%s'\n", name); return NULL; |