summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-08-09 13:37:41 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-08-10 18:49:35 +0200
commitdfaf319ac9477c7efe35c773b23666f515dd3f3e (patch)
treedd583ca79cb3500857ec8538e9201ea96f9df150 /libavcodec
parent51d02911f08cfd699a583194b407605c36feda00 (diff)
avcodec/mpegvideo_enc: Remove redundant check
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpegvideo_enc.c2
1 files changed, 1 insertions, 1 deletions
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));