On Tue, Aug 13, 2013 at 07:08:25AM +0200, Luca Barbato wrote:
> Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
> CC: [email protected]
> ---
>  libavcodec/nuv.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libavcodec/nuv.c b/libavcodec/nuv.c
> index 0905411..086e57c 100644
> --- a/libavcodec/nuv.c
> +++ b/libavcodec/nuv.c
> @@ -134,6 +134,7 @@ static int codec_reinit(AVCodecContext *avctx, int width, 
> int height,
>          }
>          ff_rtjpeg_decode_init(&c->rtj, &c->dsp, c->width, c->height,
>                                c->lq, c->cq);
> +        av_frame_unref(&c->pic);
>      } else if (quality != c->quality)
>          ff_rtjpeg_decode_init(&c->rtj, &c->dsp, c->width, c->height,
>                                c->lq, c->cq);
> -- 

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

Reply via email to