[FFmpeg-cvslog] avcodec/mpegvideo: Don't update encoder-only fields for decoders
Andreas Rheinhardt
git at videolan.org
Fri Dec 17 03:59:13 EET 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Dec 12 20:42:46 2021 +0100| [0abdf63ae7fc9c194bc1df612c649eb7d110b9cc] | committer: Andreas Rheinhardt
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 at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0abdf63ae7fc9c194bc1df612c649eb7d110b9cc
---
libavcodec/mpegvideo.c | 6 ------
1 file changed, 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;
}
More information about the ffmpeg-cvslog
mailing list