2012/4/3 Anton Khirnov <[email protected]>:
> From: Stefano Sabatini <[email protected]>
>
> This is required for letting applications to create and destroy
> AVFilterInOut structs in a convenient way.
>
> Signed-off-by: Anton Khirnov <[email protected]>
> ---
>  avconv.c                    |    4 ++--
>  avplay.c                    |    4 ++--
>  doc/APIchanges              |    4 ++++
>  libavfilter/avfiltergraph.h |   13 +++++++++++++
>  libavfilter/graphparser.c   |   35 ++++++++++++++++++++---------------
>  libavfilter/version.h       |    2 +-
>  6 files changed, 42 insertions(+), 20 deletions(-)
>
> diff --git a/avconv.c b/avconv.c
> index af73f08..746ac4b 100644
> --- a/avconv.c
> +++ b/avconv.c
> @@ -603,8 +603,8 @@ static int configure_video_filters(InputStream *ist, 
> OutputStream *ost)
>     ost->graph->scale_sws_opts = av_strdup(args);
>
>     if (ost->avfilter) {
> -        AVFilterInOut *outputs = av_malloc(sizeof(AVFilterInOut));
> -        AVFilterInOut *inputs  = av_malloc(sizeof(AVFilterInOut));
> +        AVFilterInOut *outputs = avfilter_inout_alloc();
> +        AVFilterInOut *inputs  = avfilter_inout_alloc();

Great, i can eliminate an ifdef (checking ffmpeg/libav fork) there in
my apps! Thanks.

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

Reply via email to