[FFmpeg-devel] [PATCH 23/34] avcodec/zmbvenc: Simplify setting keyframe flag

Tomas Härdin tjoppen at acc.umu.se
Wed Apr 28 10:59:15 EEST 2021


mån 2021-04-26 klockan 00:34 +0200 skrev Andreas Rheinhardt:
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
>  libavcodec/zmbvenc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/zmbvenc.c b/libavcodec/zmbvenc.c
> index 319381dd48..4b3416219b 100644
> --- a/libavcodec/zmbvenc.c
> +++ b/libavcodec/zmbvenc.c
> @@ -294,10 +294,10 @@ FF_ENABLE_DEPRECATION_WARNINGS
>          *buf++ = c->fmt; // format
>          *buf++ = ZMBV_BLOCK; // block width
>          *buf++ = ZMBV_BLOCK; // block height
> +        pkt->flags |= AV_PKT_FLAG_KEY;
>      }
>      memcpy(buf, c->comp_buf, c->zstream.total_out);
>  
> -    pkt->flags |= AV_PKT_FLAG_KEY*keyframe;

Looks OK

/Tomas



More information about the ffmpeg-devel mailing list