On Tue, Dec 06, 2011 at 05:14:55AM +0000, Paul B. Mahol wrote:
> Otherwise after transcoding from cljr we get: Found 1 unreleased buffers!
>
> ---
>
> diff --git a/libavcodec/cljr.c b/libavcodec/cljr.c
> index 05cad20..b91eb1c 100644
> --- a/libavcodec/cljr.c
> +++ b/libavcodec/cljr.c
> @@ -139,6 +139,13 @@ static av_cold int decode_init(AVCodecContext *avctx){
> return 0;
> }
>
> +static av_cold int decode_end(AVCodecContext *avctx) {
> + CLJRContext *a = avctx->priv_data;
> +
> + if (a->picture.data[0]);
> + avctx->release_buffer(avctx, &a->picture);
> +}
> +
> #if CONFIG_CLJR_ENCODER
> static av_cold int encode_init(AVCodecContext *avctx){
>
> @@ -154,6 +161,7 @@ AVCodec ff_cljr_decoder = {
> .id = CODEC_ID_CLJR,
> .priv_data_size = sizeof(CLJRContext),
> .init = decode_init,
> + .close = decode_end,
> .decode = decode_frame,
> .capabilities = CODEC_CAP_DR1,
> .long_name = NULL_IF_CONFIG_SMALL("Cirrus Logic AccuPak"),
looks OK
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel