diff mbox series

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

Message ID AM7PR03MB66603DE33673B5AC11DD1A188F749@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit 0abdf63ae7fc9c194bc1df612c649eb7d110b9cc
Headers show
Series [FFmpeg-devel,1/7] avcodec/mpegvideo: Move closed_gop to Mpeg1Context | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Dec. 13, 2021, 1:38 a.m. UTC
ff_mpeg_update_thread_context() is only used by decoders.

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

Patch

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;
 }