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

Andreas Rheinhardt git at videolan.org
Thu Aug 18 21:24:58 EEST 2022


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Mon Aug 15 17:58:23 2022 +0200| [afd9da24d9da6b4a194c03779e8863b8a66ed745] | committer: Andreas Rheinhardt

avcodec/mpegvideo_dec: Don't sync AVCodecContext fields manually

They are already synced generically in update_context_from_thread()
in pthread_frame.c.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=afd9da24d9da6b4a194c03779e8863b8a66ed745
---

 libavcodec/mpegvideo_dec.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/libavcodec/mpegvideo_dec.c b/libavcodec/mpegvideo_dec.c
index 08385764b4..406c3feacf 100644
--- a/libavcodec/mpegvideo_dec.c
+++ b/libavcodec/mpegvideo_dec.c
@@ -90,11 +90,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;



More information about the ffmpeg-cvslog mailing list