[FFmpeg-soc] [soc]: r2096 - libavfilter/graphparser.c

vitor subversion at mplayerhq.hu
Sun Apr 6 20:19:09 CEST 2008


Author: vitor
Date: Sun Apr  6 20:19:09 2008
New Revision: 2096

Log:
Better instance name for parsed filters

Modified:
   libavfilter/graphparser.c

Modified: libavfilter/graphparser.c
==============================================================================
--- libavfilter/graphparser.c	(original)
+++ libavfilter/graphparser.c	Sun Apr  6 20:19:09 2008
@@ -47,9 +47,9 @@ static AVFilterContext *create_filter(AV
     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(AV
         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;



More information about the FFmpeg-soc mailing list