[vlc-commits] packetizer: avparser: set keyframe flag
Thomas Guillem
git at videolan.org
Fri Feb 23 13:37:56 CET 2018
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Feb 23 13:35:31 2018 +0100| [a8a84279e5dc9b8d2295c3b9533527cd94548ee7] | committer: Thomas Guillem
packetizer: avparser: set keyframe flag
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a8a84279e5dc9b8d2295c3b9533527cd94548ee7
---
modules/packetizer/avparser.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/packetizer/avparser.c b/modules/packetizer/avparser.c
index f7792bfaf8..364141ac1f 100644
--- a/modules/packetizer/avparser.c
+++ b/modules/packetizer/avparser.c
@@ -190,6 +190,8 @@ static block_t *Packetize ( decoder_t *p_dec, block_t **pp_block )
memcpy( p_ret->p_buffer, p_outdata, i_outlen );
p_ret->i_pts = p_block->i_pts;
p_ret->i_dts = p_block->i_dts;
+ if( p_sys->p_parser_ctx->key_frame == 1 )
+ p_ret->i_flags |= BLOCK_FLAG_TYPE_I;
p_block->i_pts = p_block->i_dts = VLC_TS_INVALID;
More information about the vlc-commits
mailing list