On Wed,  5 Dec 2012 08:06:57 +0100, Luca Barbato <[email protected]> wrote:
> From: Sebastian Dröge <[email protected]>
> 
> Fixes crashes when releasing the buffers again later.
> ---
>  libavcodec/utils.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/libavcodec/utils.c b/libavcodec/utils.c
> index 06f4fc9..881009e 100644
> --- a/libavcodec/utils.c
> +++ b/libavcodec/utils.c
> @@ -364,6 +364,8 @@ static int audio_get_buffer(AVCodecContext *avctx, 
> AVFrame *frame)
>          memcpy(frame->data, buf->data, sizeof(frame->data));
>      }
>  
> +    avci->buffer_count++;
> +
>      frame->type = FF_BUFFER_TYPE_INTERNAL;
>  
>      if (avctx->pkt)
> -- 
> 1.7.12
> 

No, this is wrong.

I already discussed this with the author on IRC.

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

Reply via email to