diff options
author | Zdenek Kabelac <zdenek.kabelac@gmail.com> | 2008-01-25 07:37:46 +0000 |
---|---|---|
committer | Andreas Ă–man <andreas@lonelycoder.com> | 2008-01-25 07:37:46 +0000 |
commit | e2fdba650d3ae21c693eac21642e389c8da25a1d (patch) | |
tree | 2a912f056980bb47a8a5d19a663aa5b84360fff7 /libavcodec/wmv2dec.c | |
parent | 0f44edaa1ce77f95b83de0db1077dafc4a305331 (diff) | |
download | ffmpeg-e2fdba650d3ae21c693eac21642e389c8da25a1d.tar.gz |
Correctly clean up IntraX8Context upon codec close.
patch by Zdenek Kabelac, zdenek d kabelac a gmail d com
Originally committed as revision 11608 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/wmv2dec.c')
-rw-r--r-- | libavcodec/wmv2dec.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libavcodec/wmv2dec.c b/libavcodec/wmv2dec.c index 842234bfe1..cb37955124 100644 --- a/libavcodec/wmv2dec.c +++ b/libavcodec/wmv2dec.c @@ -474,6 +474,14 @@ static int wmv2_decode_init(AVCodecContext *avctx){ 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 @@ AVCodec wmv2_decoder = { 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, }; |