Mercurial > libavcodec.hg
comparison indeo5.c @ 11255:f65b3f7186b5 libavcodec
10l trocadero: Indeo 5 decoder did not free custom VLCs for macroblock and
block decoding at exit, so prevent that memory leak now.
author | kostya |
---|---|
date | Tue, 23 Feb 2010 07:41:29 +0000 |
parents | b75449aaea3e |
children | d617766bf19b |
comparison
equal
deleted
inserted
replaced
11254:e820a9d3f80c | 11255:f65b3f7186b5 |
---|---|
858 { | 858 { |
859 IVI5DecContext *ctx = avctx->priv_data; | 859 IVI5DecContext *ctx = avctx->priv_data; |
860 | 860 |
861 ff_ivi_free_buffers(&ctx->planes[0]); | 861 ff_ivi_free_buffers(&ctx->planes[0]); |
862 | 862 |
863 if (ctx->mb_vlc_cust.table) | |
864 free_vlc(&ctx->mb_vlc_cust); | |
865 | |
863 if (ctx->frame.data[0]) | 866 if (ctx->frame.data[0]) |
864 avctx->release_buffer(avctx, &ctx->frame); | 867 avctx->release_buffer(avctx, &ctx->frame); |
865 | 868 |
866 return 0; | 869 return 0; |
867 } | 870 } |