[FFmpeg-devel] [PATCH] avcodec/mpegvideo_dec: Don't sync AVCodecContext fields manually

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Thu Aug 18 17:57:22 EEST 2022


Andreas Rheinhardt:
> They are already synced generically in update_context_from_thread()
> in pthread_frame.c.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
>  libavcodec/mpegvideo_dec.c | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/libavcodec/mpegvideo_dec.c b/libavcodec/mpegvideo_dec.c
> index 7566fe69f9..fd706070b2 100644
> --- a/libavcodec/mpegvideo_dec.c
> +++ b/libavcodec/mpegvideo_dec.c
> @@ -92,11 +92,6 @@ int ff_mpeg_update_thread_context(AVCodecContext *dst,
>              return ret;
>      }
>  
> -    s->avctx->coded_height  = s1->avctx->coded_height;
> -    s->avctx->coded_width   = s1->avctx->coded_width;
> -    s->avctx->width         = s1->avctx->width;
> -    s->avctx->height        = s1->avctx->height;
> -
>      s->quarter_sample       = s1->quarter_sample;
>  
>      s->coded_picture_number = s1->coded_picture_number;

Will apply this patch tonight unless there are objections.

- Andreas


More information about the ffmpeg-devel mailing list