]> git.sesse.net Git - vlc/commitdiff
Set picture flags (I/P/B) in mpeg4 packetizer.
authorLaurent Aimar <fenrir@videolan.org>
Wed, 27 Aug 2008 09:51:40 +0000 (11:51 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Wed, 27 Aug 2008 10:12:42 +0000 (12:12 +0200)
This will help our muxers creating better files.

modules/packetizer/mpeg4video.c

index 449ec36d08337c5988627a3b8cc44d62198ac0e1..c9136efd34f0bf2a87bd718edb22c2b37246912b 100644 (file)
@@ -403,6 +403,7 @@ static block_t *ParseMPEGBlock( decoder_t *p_dec, block_t *p_frag )
     {
         /* We are dealing with a VOP */
         p_pic = block_ChainGather( p_sys->p_frame );
+        p_pic->i_flags = p_sys->i_flags;
         p_pic->i_pts = p_sys->i_interpolated_pts;
         p_pic->i_dts = p_sys->i_interpolated_dts;