On 13/03/13 20:51, Anton Khirnov wrote:
> ---
>  libavfilter/avfiltergraph.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
> index 7bbfc1c..516617e 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);
>  

Patch ok, which is the limit of nb_filters ?



_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to