Replace the number by macro for bprint init.
Showing the changes to libavfilter/graphdump.c (1 of 1 file). Show all
Unified · Split
| @@ -156,7 +156,7 @@ char *avfilter_graph_dump(AVFilterGraph *graph, const char *options) · 155 unmodified lines | |||
| 156 | AVBPrint buf; | 156 | AVBPrint buf; |
| 157 | char *dump; | 157 | char *dump; |
| 158 | 158 | ||
| 159 | av_bprint_init(&buf, 0, 0); | 159 | av_bprint_init(&buf, 0, AV_BPRINT_SIZE_COUNT_ONLY); |
| 160 | avfilter_graph_dump_to_buf(&buf, graph); | 160 | avfilter_graph_dump_to_buf(&buf, graph); |
| 161 | av_bprint_init(&buf, buf.len + 1, buf.len + 1); | 161 | av_bprint_init(&buf, buf.len + 1, buf.len + 1); |
| 162 | avfilter_graph_dump_to_buf(&buf, graph); | 162 | avfilter_graph_dump_to_buf(&buf, graph); |