On Wed, Feb 24, 2016 at 10:36 AM, Anton Khirnov <an...@khirnov.net> wrote:
> ---
>  libavcodec/mpegvideo_enc.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
> index d16e408..96f49ef 100644
> --- a/libavcodec/mpegvideo_enc.c
> +++ b/libavcodec/mpegvideo_enc.c
> @@ -1343,8 +1343,7 @@ static int estimate_best_b_count(MpegEncContext *s)
>          }
>      }
>
> -    avcodec_close(c);
> -    av_freep(&c);
> +    avcodec_free_context(&c);
>
>      return best_b_count;
>  }
> --
> 2.0.0

ok
-- 
Vittorio
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to