From 73ea6db0ba815b80d6e7b06e86e4c5db9e2032ed Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Tue, 9 Aug 2022 14:14:38 +0200 Subject: avcodec/mpegpicture: Move encoding_error and mb_var_sum to MpegEncCtx These fields are only ever set by the encoder for the current picture and for no other picture. So only one set of these values needs to exist, so move them to MpegEncContext. Signed-off-by: Andreas Rheinhardt --- libavcodec/mpegpicture.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'libavcodec/mpegpicture.h') diff --git a/libavcodec/mpegpicture.h b/libavcodec/mpegpicture.h index 62589595d0..a1455ee13c 100644 --- a/libavcodec/mpegpicture.h +++ b/libavcodec/mpegpicture.h @@ -71,16 +71,11 @@ typedef struct Picture { int field_picture; ///< whether or not the picture was encoded in separate fields - int64_t mb_var_sum; ///< sum of MB variance for current frame - int64_t mc_mb_var_sum; ///< motion compensated MB variance for current frame - int b_frame_score; int needs_realloc; ///< Picture needs to be reallocated (eg due to a frame size change) int reference; int shared; - - uint64_t encoding_error[MPEGVIDEO_MAX_PLANES]; } Picture; /** -- cgit v1.2.3