[FFmpeg-devel] [PATCH] avformat/gifdec: cleanup

Anton Khirnov anton at khirnov.net
Sun May 21 13:05:42 EEST 2023


Quoting Paul B Mahol (2023-05-21 11:38:09)
> From cbc9c6ea4df153caece779b9052761f23d6d31a1 Mon Sep 17 00:00:00 2001
> From: Paul B Mahol <onemda at gmail.com>
> Date: Sun, 21 May 2023 02:14:35 +0200
> Subject: [PATCH 2/3] avcodec/gifdec: set frame time_base
> 
> Signed-off-by: Paul B Mahol <onemda at gmail.com>
> ---
>  libavcodec/gifdec.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c
> index 0835c5bdd0..d66e16105b 100644
> --- a/libavcodec/gifdec.c
> +++ b/libavcodec/gifdec.c
> @@ -454,6 +454,7 @@ static av_cold int gif_decode_init(AVCodecContext *avctx)
>  
>      s->avctx = avctx;
>  
> +    avctx->time_base = av_make_q(1, 100);

The meaning of this field is not defined for decoding, so you should not
set it.

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list