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/intrax8.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/intrax8.c')
-rw-r--r-- | libavcodec/intrax8.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/intrax8.c b/libavcodec/intrax8.c index ec1567ea23..0436deb4ce 100644 --- a/libavcodec/intrax8.c +++ b/libavcodec/intrax8.c @@ -677,6 +677,15 @@ void ff_intrax8_common_init(IntraX8Context * w, MpegEncContext * const s){ } /** + * Destroy IntraX8 frame structure. + * @param w pointer to IntraX8Context + */ +void ff_intrax8_common_end(IntraX8Context * w) +{ + av_freep(&w->prediction_table); +} + +/** * Decode single IntraX8 frame. * The parent codec must fill s->loopfilter and s->gb (bitstream). * The parent codec must call MPV_frame_start(), ff_er_frame_start() before calling this function. |