]> git.sesse.net Git - vlc/blobdiff - modules/packetizer/mpeg4video.c
Fixes malloc's parameter
[vlc] / modules / packetizer / mpeg4video.c
index 8350571b04c63eace15e034ad709a1ed70340913..a400910d98f66fc29ff06ce872cde37a7ed238d1 100644 (file)
@@ -132,6 +132,7 @@ static int Open( vlc_object_t *p_this )
         return VLC_EGENERIC;
     }
     p_sys->i_pts = 0;
+    p_sys->i_dts = 0;
     p_sys->b_vop = VLC_FALSE;
     p_sys->i_buffer = 0;
     p_sys->i_buffer_size = 0;
@@ -140,7 +141,7 @@ static int Open( vlc_object_t *p_this )
     p_sys->b_frame = VLC_FALSE;
 
     /* Setup properties */
-    p_dec->fmt_out = p_dec->fmt_in;
+    es_format_Copy( &p_dec->fmt_out, &p_dec->fmt_in );
     p_dec->fmt_out.i_codec = VLC_FOURCC( 'm', 'p', '4', 'v' );
 
     if( p_dec->fmt_in.i_extra )