[FFmpeg-devel] [PATCH 2/7] avcodec/mpegvideo: Don't update encoder-only fields for decoders

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Mon Dec 13 03:38:24 EET 2021


ff_mpeg_update_thread_context() is only used by decoders.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
 libavcodec/mpegvideo.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 55399a7478..b5ff4cec69 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -658,12 +658,6 @@ do {\
     memcpy(&s->progressive_sequence, &s1->progressive_sequence,
            (char *) &s1->rtp_mode - (char *) &s1->progressive_sequence);
 
-    if (!s1->first_field) {
-        s->last_pict_type = s1->pict_type;
-        if (s1->current_picture_ptr)
-            s->last_lambda_for[s1->pict_type] = s1->current_picture_ptr->f->quality;
-    }
-
     return 0;
 }
 
-- 
2.32.0



More information about the ffmpeg-devel mailing list