diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-09 13:37:41 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-10 18:49:35 +0200 |
commit | dfaf319ac9477c7efe35c773b23666f515dd3f3e (patch) | |
tree | dd583ca79cb3500857ec8538e9201ea96f9df150 /libavcodec | |
parent | 51d02911f08cfd699a583194b407605c36feda00 (diff) | |
download | ffmpeg-dfaf319ac9477c7efe35c773b23666f515dd3f3e.tar.gz |
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.c | 2 |
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)); |