]> git.sesse.net Git - vlc/commitdiff
* first sps, then pps
authorDerk-Jan Hartman <hartman@videolan.org>
Mon, 14 Aug 2006 23:37:28 +0000 (23:37 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Mon, 14 Aug 2006 23:37:28 +0000 (23:37 +0000)
modules/packetizer/h264.c

index 4cd4d65f35ba82aca6cc119d4fdcbeb2b696923c..c874c562d5fccfc575fbe68e5e202b98d1c89391 100644 (file)
@@ -215,8 +215,8 @@ static int Open( vlc_object_t *p_this )
         /* Set the new extradata */
         p_dec->fmt_out.i_extra = p_sys->p_pps->i_buffer + p_sys->p_sps->i_buffer;
         p_dec->fmt_out.p_extra = (uint8_t*)malloc( p_dec->fmt_out.i_extra );
-        memcpy( p_dec->fmt_out.p_extra, p_sys->p_pps->p_buffer, p_sys->p_pps->i_buffer);
-        memcpy( p_dec->fmt_out.p_extra+p_sys->p_pps->i_buffer, p_sys->p_sps->p_buffer, p_sys->p_sps->i_buffer);
+        memcpy( p_dec->fmt_out.p_extra, p_sys->p_sps->p_buffer, p_sys->p_sps->i_buffer);
+        memcpy( p_dec->fmt_out.p_extra+p_sys->p_sps->i_buffer, p_sys->p_pps->p_buffer, p_sys->p_pps->i_buffer);
 
         /* Set callback */
         p_dec->pf_packetize = PacketizeAVC1;