"Ronald S. Bultje" <[email protected]> writes:
> Fixes valgrind fate-aac-latm_000000001180bc60 errors.
Please say what actual errors it fixes, i.e. memory leaks from the
initialised context.
> ---
> libavcodec/aacdec.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c
> index f2d50f4..fbb3582 100644
> --- a/libavcodec/aacdec.c
> +++ b/libavcodec/aacdec.c
> @@ -2464,6 +2464,7 @@ static int latm_decode_frame(AVCodecContext *avctx,
> void *out, int *out_size,
> *out_size = 0;
> return avpkt->size;
> } else {
> + aac_decode_close(avctx);
> if ((err = aac_decode_init(avctx)) < 0)
> return err;
> latmctx->initialized = 1;
> --
Looks good.
--
Måns Rullgård
[email protected]
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel