[vlc-commits] packetizer: avparser: set keyframe flag

Thomas Guillem git at videolan.org
Mon Feb 26 12:05:15 CET 2018


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Feb 23 13:35:31 2018 +0100| [987044e4a35d3669cc46191853720986130c3277] | committer: Thomas Guillem

packetizer: avparser: set keyframe flag

(cherry picked from commit a8a84279e5dc9b8d2295c3b9533527cd94548ee7)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=987044e4a35d3669cc46191853720986130c3277
---

 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