[FFmpeg-soc] [soc]: r2088 - libavfilter/avfiltergraph.c

vitor subversion at mplayerhq.hu
Thu Apr 3 21:53:19 CEST 2008


Author: vitor
Date: Thu Apr  3 21:53:18 2008
New Revision: 2088

Log:
Use sizeof(var) instead of sizeof(type)

Modified:
   libavfilter/avfiltergraph.c

Modified: libavfilter/avfiltergraph.c
==============================================================================
--- libavfilter/avfiltergraph.c	(original)
+++ libavfilter/avfiltergraph.c	Thu Apr  3 21:53:18 2008
@@ -76,7 +76,7 @@ static int query_formats(AVFilterGraph *
                                            link->out_formats)) {
                     AVFilterContext *scale;
                     /* couldn't merge format lists. auto-insert scale filter */
-                    snprintf(inst_name, 30, "auto-inserted scaler %d",
+                    snprintf(inst_name, sizeof(inst_name), "auto-inserted scaler %d",
                              scaler_count);
                     scale =
                         avfilter_open(avfilter_get_by_name("scale"),inst_name);



More information about the FFmpeg-soc mailing list