[vlc-devel] [PATCH 2/3] twolame: mark output blocks as keyframes
Steve Lhomme
robux4 at videolabs.io
Mon Aug 8 14:39:50 CEST 2016
---
modules/codec/twolame.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/codec/twolame.c b/modules/codec/twolame.c
index 6fdad11..fcdbe2f 100644
--- a/modules/codec/twolame.c
+++ b/modules/codec/twolame.c
@@ -335,6 +335,7 @@ static block_t *Encode( encoder_t *p_enc, block_t *p_aout_buf )
p_block->i_length = CLOCK_FREQ *
(mtime_t)MPEG_FRAME_SIZE / (mtime_t)p_enc->fmt_out.audio.i_rate;
p_block->i_dts = p_block->i_pts = p_sys->i_pts;
+ p_block->i_flags = BLOCK_FLAG_TYPE_I;
p_sys->i_pts += p_block->i_length;
block_ChainAppend( &p_chain, p_block );
}
--
2.8.2
More information about the vlc-devel
mailing list