aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-02-25 12:14:56 +0100
committerAnton Khirnov <anton@khirnov.net>2013-03-16 05:34:20 +0100
commitdd74e3ef339e89343cb3eefc8d9e91dcad8444f0 (patch)
tree9e8276e5e3db08d15c64315809d2a4bd3c4bee65
parent42c7c61ab25809620b8c8809b3da73e25f5bbaaf (diff)
downloadffmpeg-dd74e3ef339e89343cb3eefc8d9e91dcad8444f0.tar.gz
avfiltergraph: use sizeof(var) instead of sizeof(type)
-rw-r--r--libavfilter/avfiltergraph.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index 7bbfc1ceb4..516617e62b 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -39,7 +39,7 @@ static const AVClass filtergraph_class = {
AVFilterGraph *avfilter_graph_alloc(void)
{
- AVFilterGraph *ret = av_mallocz(sizeof(AVFilterGraph));
+ AVFilterGraph *ret = av_mallocz(sizeof(*ret));
if (!ret)
return NULL;
ret->av_class = &filtergraph_class;
@@ -61,7 +61,7 @@ void avfilter_graph_free(AVFilterGraph **graph)
int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter)
{
AVFilterContext **filters = av_realloc(graph->filters,
- sizeof(AVFilterContext*) * (graph->nb_filters + 1));
+ sizeof(*filters) * (graph->nb_filters + 1));
if (!filters)
return AVERROR(ENOMEM);