Skip to content

Commit

Permalink
avcodec/mpegvideo: Don't update encoder-only fields for decoders
Browse files Browse the repository at this point in the history
ff_mpeg_update_thread_context() is only used by decoders.

Signed-off-by: Andreas Rheinhardt <[email protected]>
  • Loading branch information
mkver committed Dec 17, 2021
1 parent 81c6b8f commit 0abdf63
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions libavcodec/mpegvideo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 0abdf63

Please sign in to comment.