Mercurial > libavcodec.hg
comparison intrax8.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 | fbd10e6dfbe1 |
children | 800444234375 |
comparison
equal
deleted
inserted
replaced
6175:843555383499 | 6176:1d735690e172 |
---|---|
675 ff_init_scantable(s->dsp.idct_permutation, &w->scantable[1], wmv1_scantable[2]); | 675 ff_init_scantable(s->dsp.idct_permutation, &w->scantable[1], wmv1_scantable[2]); |
676 ff_init_scantable(s->dsp.idct_permutation, &w->scantable[2], wmv1_scantable[3]); | 676 ff_init_scantable(s->dsp.idct_permutation, &w->scantable[2], wmv1_scantable[3]); |
677 } | 677 } |
678 | 678 |
679 /** | 679 /** |
680 * Destroy IntraX8 frame structure. | |
681 * @param w pointer to IntraX8Context | |
682 */ | |
683 void ff_intrax8_common_end(IntraX8Context * w) | |
684 { | |
685 av_freep(&w->prediction_table); | |
686 } | |
687 | |
688 /** | |
680 * Decode single IntraX8 frame. | 689 * Decode single IntraX8 frame. |
681 * The parent codec must fill s->loopfilter and s->gb (bitstream). | 690 * The parent codec must fill s->loopfilter and s->gb (bitstream). |
682 * The parent codec must call MPV_frame_start(), ff_er_frame_start() before calling this function. | 691 * The parent codec must call MPV_frame_start(), ff_er_frame_start() before calling this function. |
683 * The parent codec must call ff_er_frame_end(), MPV_frame_end() after calling this function. | 692 * The parent codec must call ff_er_frame_end(), MPV_frame_end() after calling this function. |
684 * This function does not use MPV_decode_mb(). | 693 * This function does not use MPV_decode_mb(). |