avcodec/mpegvideo_enc: Remove redundant check

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2022-08-09 13:37:41 +02:00
parent 51d02911f0
commit dfaf319ac9
1 changed files with 1 additions and 1 deletions

View File

@ -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));