diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-12-12 20:42:46 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-12-17 01:53:50 +0100 |
commit | 0abdf63ae7fc9c194bc1df612c649eb7d110b9cc (patch) | |
tree | d8f1e39381b878ea95c0baf807d4528d582492ec /libavcodec | |
parent | 81c6b8ffe87bf01c4ba7d22773b0aeda4376d37c (diff) | |
download | ffmpeg-0abdf63ae7fc9c194bc1df612c649eb7d110b9cc.tar.gz |
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>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mpegvideo.c | 6 |
1 files changed, 0 insertions, 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; } |