]> git.sesse.net Git - vlc/commitdiff
mpeg4video: Fix leaked fmt_out.p_extra.
authorPierre d'Herbemont <pdherbemont@free.fr>
Thu, 11 Feb 2010 16:27:47 +0000 (17:27 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Thu, 11 Feb 2010 18:56:41 +0000 (19:56 +0100)
modules/packetizer/mpeg4video.c

index b482c61eb16b119a018b4ba4bcbf3c41405ffb9c..af61cc172ece1491b215505aca1cb481bdc53227 100644 (file)
@@ -152,6 +152,8 @@ static int Open( vlc_object_t *p_this )
     es_format_Copy( &p_dec->fmt_out, &p_dec->fmt_in );
     p_dec->fmt_out.i_codec = VLC_CODEC_MP4V;
 
+    free(p_dec->fmt_out.p_extra);
+
     if( p_dec->fmt_in.i_extra )
     {
         /* We have a vol */