Mercurial > libavcodec.hg
diff wmv2dec.c @ 6176:1d735690e172 libavcodec
Correctly clean up IntraX8Context upon codec close.
patch by Zdenek Kabelac, zdenek d kabelac a gmail d com
author | andoma |
---|---|
date | Fri, 25 Jan 2008 07:37:46 +0000 |
parents | b1bd3188bdef |
children | 493dc59d469a |
line wrap: on
line diff
--- a/wmv2dec.c Thu Jan 24 19:51:31 2008 +0000 +++ b/wmv2dec.c Fri Jan 25 07:37:46 2008 +0000 @@ -474,6 +474,14 @@ return 0; } +static int wmv2_decode_end(AVCodecContext *avctx) +{ + Wmv2Context *w = avctx->priv_data; + + ff_intrax8_common_end(&w->x8); + return ff_h263_decode_end(avctx); +} + AVCodec wmv2_decoder = { "wmv2", CODEC_TYPE_VIDEO, @@ -481,7 +489,7 @@ sizeof(Wmv2Context), wmv2_decode_init, NULL, - ff_h263_decode_end, + wmv2_decode_end, ff_h263_decode_frame, CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, };