From c69488325bf59dd1ea201d947a04729a8b030328 Mon Sep 17 00:00:00 2001 From: Francois Cartegnie <fcvlcdev@free.fr> Date: Thu, 15 Nov 2018 22:08:06 +0100 Subject: [PATCH] codec: videotoolbox: tag still frame forced only is not sufficient --- modules/codec/videotoolbox.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m index c1b8f68118bf..e7753aebee0b 100644 --- a/modules/codec/videotoolbox.m +++ b/modules/codec/videotoolbox.m @@ -122,8 +122,8 @@ struct frame_info_t picture_t *p_picture; int i_poc; int i_foc; - bool b_forced; bool b_flush; + bool b_eos; bool b_keyframe; bool b_field; bool b_progressive; @@ -930,7 +930,7 @@ static frame_info_t * CreateReorderInfo(decoder_t *p_dec, const block_t *p_block p_info->i_length = p_block->i_length; /* required for still pictures/menus */ - p_info->b_forced = (p_block->i_flags & BLOCK_FLAG_END_OF_SEQUENCE); + p_info->b_eos = (p_block->i_flags & BLOCK_FLAG_END_OF_SEQUENCE); if (date_Get(&p_sys->pts) == VLC_TICK_INVALID) date_Set(&p_sys->pts, p_block->i_dts); @@ -2206,7 +2206,8 @@ static void DecoderCallback(void *decompressionOutputRefCon, p_info->p_picture = p_pic; p_pic->date = pts.value; - p_pic->b_force = p_info->b_forced; + p_pic->b_force = p_info->b_eos; + p_pic->b_still = p_info->b_eos; p_pic->b_progressive = p_info->b_progressive; if(!p_pic->b_progressive) { -- GitLab