Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
6175:843555383499 | 6176:1d735690e172 |
---|---|
472 ff_intrax8_common_init(&w->x8,&w->s); | 472 ff_intrax8_common_init(&w->x8,&w->s); |
473 | 473 |
474 return 0; | 474 return 0; |
475 } | 475 } |
476 | 476 |
477 static int wmv2_decode_end(AVCodecContext *avctx) | |
478 { | |
479 Wmv2Context *w = avctx->priv_data; | |
480 | |
481 ff_intrax8_common_end(&w->x8); | |
482 return ff_h263_decode_end(avctx); | |
483 } | |
484 | |
477 AVCodec wmv2_decoder = { | 485 AVCodec wmv2_decoder = { |
478 "wmv2", | 486 "wmv2", |
479 CODEC_TYPE_VIDEO, | 487 CODEC_TYPE_VIDEO, |
480 CODEC_ID_WMV2, | 488 CODEC_ID_WMV2, |
481 sizeof(Wmv2Context), | 489 sizeof(Wmv2Context), |
482 wmv2_decode_init, | 490 wmv2_decode_init, |
483 NULL, | 491 NULL, |
484 ff_h263_decode_end, | 492 wmv2_decode_end, |
485 ff_h263_decode_frame, | 493 ff_h263_decode_frame, |
486 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, | 494 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, |
487 }; | 495 }; |