Better instance name for parsed filters
authorVitor Sessak <vitor1001@gmail.com>
Sat, 24 May 2008 20:39:05 +0000 (20:39 +0000)
committerVitor Sessak <vitor1001@gmail.com>
Sat, 24 May 2008 20:39:05 +0000 (20:39 +0000)
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

libavfilter/graphparser.c

index f76883d9b64643edc219d7b97661a2319b3b7c07..9e7aa4193853fbbb0fd33703029386f4e4ac8407 100644 (file)
@@ -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;