[vlc-devel] [PATCH 1/3] properly mark keyframe packets when feeding them to avcodec

Thomas Guillem thomas at gllm.fr
Thu Apr 11 17:26:16 CEST 2019


OK for the whole set.

On Thu, Apr 11, 2019, at 17:19, Paul B Mahol wrote:
> Certain codecs, like AGM depends on this.
> ---
>  modules/codec/avcodec/video.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/modules/codec/avcodec/video.c 
> b/modules/codec/avcodec/video.c
> index e7c34938b1..cccc84d22f 100644
> --- a/modules/codec/avcodec/video.c
> +++ b/modules/codec/avcodec/video.c
> @@ -1082,6 +1082,8 @@ static int DecodeBlock( decoder_t *p_dec, block_t 
> **pp_block )
>                  pkt.size = p_block->i_buffer;
>                  pkt.pts = p_block->i_pts != VLC_TICK_INVALID ? 
> TO_AV_TS(p_block->i_pts) : AV_NOPTS_VALUE;
>                  pkt.dts = p_block->i_dts != VLC_TICK_INVALID ? 
> TO_AV_TS(p_block->i_dts) : AV_NOPTS_VALUE;
> +                if (p_block->i_flags & BLOCK_FLAG_TYPE_I)
> +                    pkt.flags |= AV_PKT_FLAG_KEY;
>              }
>              else
>              {
> -- 
> 2.17.1
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list