From dfaf319ac9477c7efe35c773b23666f515dd3f3e Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Tue, 9 Aug 2022 13:37:41 +0200 Subject: [PATCH] avcodec/mpegvideo_enc: Remove redundant check Signed-off-by: Andreas Rheinhardt --- libavcodec/mpegvideo_enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index 2cd4db27bc..4840d80fe8 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -1252,7 +1252,7 @@ static int estimate_best_b_count(MpegEncContext *s) const Picture *pre_input_ptr = i ? s->input_picture[i - 1] : s->next_picture_ptr; - if (pre_input_ptr && (!i || s->input_picture[i - 1])) { + if (pre_input_ptr) { const uint8_t *data[4]; memcpy(data, pre_input_ptr->f->data, sizeof(data));