* commit '9676b9a2cdc4a90611188fc48d8d388e427997c5': AVOption: remove an unused function parameter. filters.texi: restore mistakenly removed section name for noformat avfiltergraph: use sizeof(var) instead of sizeof(type)
Unified · Split
| @@ -51,7 +51,7 @@ static const AVClass filtergraph_class = { · 50 unmodified lines | ||
| 51 | 51 | |
| 52 | 52 | AVFilterGraph *avfilter_graph_alloc(void) |
| 53 | 53 | { |
| 54 | − AVFilterGraph *ret = av_mallocz(sizeof(AVFilterGraph)); | |
| 54 | + AVFilterGraph *ret = av_mallocz(sizeof(*ret)); | |
| 55 | 55 | if (!ret) |
| 56 | 56 | return NULL; |
| 57 | 57 | ret->av_class = &filtergraph_class; |
| @@ -75,7 +75,7 @@ void avfilter_graph_free(AVFilterGraph **graph) · 17 unmodified lines | ||
| 75 | 75 | int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter) |
| 76 | 76 | { |
| 77 | 77 | AVFilterContext **filters = av_realloc(graph->filters, |
| 78 | − sizeof(AVFilterContext*) * (graph->nb_filters + 1)); | |
| 78 | + sizeof(*filters) * (graph->nb_filters + 1)); | |
| 79 | 79 | if (!filters) |
| 80 | 80 | return AVERROR(ENOMEM); |
| 81 | 81 | |