[FFmpeg-devel] [PATCH] avcodec/mpegvideo_dec: Don't sync AVCodecContext fields manually
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Mon Aug 15 19:31:21 EEST 2022
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;
--
2.34.1
More information about the ffmpeg-devel
mailing list