[vlc-commits] commit: Add support to mpeg-ts muxer to pass keyframe flag ( BLOCK_FLAG_TYPE_I) to access_out modules (Keary Griffin )
git at videolan.org
git at videolan.org
Sat Apr 24 17:42:52 CEST 2010
vlc | branch: master | Keary Griffin <kearygriffin at gmail.com> | Tue Mar 30 23:00:30 2010 -0400| [60a63e042bc76cd9672a793c9f26e86efbbe0493] | committer: Jean-Baptiste Kempf
Add support to mpeg-ts muxer to pass keyframe flag (BLOCK_FLAG_TYPE_I) to access_out modules
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=60a63e042bc76cd9672a793c9f26e86efbbe0493
---
modules/mux/mpeg/ts.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/modules/mux/mpeg/ts.c b/modules/mux/mpeg/ts.c
index 6ec79da..1c0961f 100644
--- a/modules/mux/mpeg/ts.c
+++ b/modules/mux/mpeg/ts.c
@@ -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;
More information about the vlc-commits
mailing list