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>
pull/379/head
Andreas Rheinhardt 3 years ago
parent 81c6b8ffe8
commit 0abdf63ae7
  1. 6
      libavcodec/mpegvideo.c

@ -658,12 +658,6 @@ do {\
memcpy(&s->progressive_sequence, &s1->progressive_sequence, memcpy(&s->progressive_sequence, &s1->progressive_sequence,
(char *) &s1->rtp_mode - (char *) &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; return 0;
} }

Loading…
Cancel
Save