Browse code

Use sizeof(var) instead of sizeof(type) Commited in SoC by Vitor Sessak on 2008-04-03 19:53:18

Originally committed as revision 12753 to svn://svn.ffmpeg.org/ffmpeg/trunk

Vitor Sessak authored on 2008/04/05 05:09:45
Showing 1 changed files
... ...
@@ -76,7 +76,7 @@ static int query_formats(AVFilterGraph *graph)
76 76
                                            link->out_formats)) {
77 77
                     AVFilterContext *scale;
78 78
                     /* couldn't merge format lists. auto-insert scale filter */
79
-                    snprintf(inst_name, 30, "auto-inserted scaler %d",
79
+                    snprintf(inst_name, sizeof(inst_name), "auto-inserted scaler %d",
80 80
                              scaler_count);
81 81
                     scale =
82 82
                         avfilter_open(avfilter_get_by_name("scale"),inst_name);