avcodec/mpegvideo: Don't update encoder-only fields for decoders

ff_mpeg_update_thread_context() is only used by decoders.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-12-12 20:42:46 +01:00
parent 81c6b8ffe8
commit 0abdf63ae7

View File

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