[FFmpeg-cvslog] avcodec/mpegvideo_enc: Remove redundant check

Andreas Rheinhardt git at videolan.org
Fri Aug 12 04:23:54 EEST 2022


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Tue Aug  9 13:37:41 2022 +0200| [dfaf319ac9477c7efe35c773b23666f515dd3f3e] | committer: Andreas Rheinhardt

avcodec/mpegvideo_enc: Remove redundant check

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dfaf319ac9477c7efe35c773b23666f515dd3f3e
---

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



More information about the ffmpeg-cvslog mailing list