]> git.sesse.net Git - vlc/commitdiff
Add support to mpeg-ts muxer to pass keyframe flag (BLOCK_FLAG_TYPE_I) to access_out...
authorKeary Griffin <kearygriffin@gmail.com>
Wed, 31 Mar 2010 03:00:30 +0000 (23:00 -0400)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 24 Apr 2010 15:41:51 +0000 (17:41 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/mux/mpeg/ts.c

index 6ec79da83e18c789f1256fd8328e258151697620..1c0961f9ce281478694b67691b0ef4acc6ca3f11 100644 (file)
@@ -2018,6 +2018,12 @@ static block_t *TSNew( sout_mux_t *p_mux, ts_stream_t *p_stream,
     }
 
     p_ts = block_New( p_mux, 188 );
+
+    if (b_new_pes && !(p_pes->i_flags & BLOCK_FLAG_NO_KEYFRAME) && p_pes->i_flags & BLOCK_FLAG_TYPE_I)
+    {
+        p_ts->i_flags |= BLOCK_FLAG_TYPE_I;
+    }
+
     p_ts->i_dts = p_pes->i_dts;
 
     p_ts->p_buffer[0] = 0x47;