--- /home/slack/VLC_0.8.6b_SVN/modules/stream_out/transcode.c	2006-10-13 16:02:37.000000000 +1000
+++ modules/stream_out/transcode.c	2007-01-18 23:47:09.000000000 +1100
@@ -1614,7 +1614,11 @@
      * We'll open it only when we have the first frame. */
     module_Unneed( id->p_encoder, id->p_encoder->p_module );
     if( id->p_encoder->fmt_out.p_extra )
+    {
         free( id->p_encoder->fmt_out.p_extra );
+        id->p_encoder->fmt_out.p_extra = NULL;
+        id->p_encoder->fmt_out.i_extra = 0;
+    }
     id->p_encoder->p_module = NULL;
 
     if( p_sys->i_threads >= 1 )
