On Sun,  1 Jan 2012 21:11:05 +0100, Janne Grunau <[email protected]> wrote:
> ---
>  avconv.c |   11 +++++++++++
>  1 files changed, 11 insertions(+), 0 deletions(-)
> 
> diff --git a/avconv.c b/avconv.c
> index f3e6e28..992b1b9 100644
> --- a/avconv.c
> +++ b/avconv.c
> @@ -667,6 +667,17 @@ void exit_program(int ret)
>          avformat_free_context(s);
>          av_dict_free(&output_files[i].opts);
>      }
> +    for (i = 0; i < nb_output_streams; i++) {
> +        if (output_streams[i].bitstream_filters) {
> +            AVBitStreamFilterContext *b = 
> output_streams[i].bitstream_filters;
> +            while (b) {
> +                AVBitStreamFilterContext *next = b->next;
> +                av_bitstream_filter_close(b);
> +                b = next;
> +            }
> +            output_streams[i].bitstream_filters = NULL;
> +        }

The if() looks redundant.

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

Reply via email to