On Thu, Sep 22, 2016 at 09:35:29AM +0200, Anton Khirnov wrote:
> --- a/libavcodec/mpegvideo_enc.c
> +++ b/libavcodec/mpegvideo_enc.c
> @@ -1313,27 +1306,46 @@ static int estimate_best_b_count(MpegEncContext *s)
>      for (j = 0; j < s->max_b_frames + 1; j++) {
> +        AVCodecContext *c = avcodec_alloc_context3(NULL);
>          int64_t rd = 0;
>  
> -        c->error[0] = c->error[1] = c->error[2] = 0;
> +        c = avcodec_alloc_context3(NULL);

Double allocation?

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

Reply via email to