Originally committed as revision 12753 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -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);
|