diff 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
line wrap: on
line diff
--- a/intrax8.c	Thu Jan 24 19:51:31 2008 +0000
+++ b/intrax8.c	Fri Jan 25 07:37:46 2008 +0000
@@ -677,6 +677,15 @@
 }
 
 /**
+ * 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.