On 13 December 2013 13:05, Luca Barbato <lu_z...@gentoo.org> wrote:
> From: Paul B Mahol <one...@gmail.com>
>
> Signed-off-by: Paul B Mahol <one...@gmail.com>
> ---
>  libavformat/jvdec.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
>
> diff --git a/libavformat/jvdec.c b/libavformat/jvdec.c
> index 8235d49..16f0c00 100644
> --- a/libavformat/jvdec.c
> +++ b/libavformat/jvdec.c
> @@ -237,6 +237,15 @@ static int read_seek(AVFormatContext *s, int 
> stream_index,
>      return 0;
>  }
>
> +static int read_close(AVFormatContext *s)
> +{
> +    JVDemuxContext *jv = s->priv_data;
> +
> +    av_freep(&jv->frames);
> +
> +    return 0;
> +}
> +
>  AVInputFormat ff_jv_demuxer = {
>      .name           = "jv",
>      .long_name      = NULL_IF_CONFIG_SMALL("Bitmap Brothers JV"),
> @@ -245,4 +254,5 @@ AVInputFormat ff_jv_demuxer = {
>      .read_header    = read_header,
>      .read_packet    = read_packet,
>      .read_seek      = read_seek,
> +    .read_close     = read_close,
>  };
> --

looks OK (I assume that ast->index_entries are freed in utils)
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to