[FFmpeg-cvslog] avcodec/mpegvideo_enc: Remove always-true branch
Andreas Rheinhardt
git at videolan.org
Sat Jun 21 23:20:24 EEST 2025
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri Jun 13 08:03:22 2025 +0200| [5b1e8056539b1fa1156dd47ab2de02a8565df0f4] | committer: Andreas Rheinhardt
avcodec/mpegvideo_enc: Remove always-true branch
Always-true since 1c40a179222f638e88c8e7b1a374753a00b0f979
which made 4863671d888273392e9dcc2429f3852c00330498 superfluous.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5b1e8056539b1fa1156dd47ab2de02a8565df0f4
---
libavcodec/mpegvideo_enc.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index 46901fc506..af1e77cfec 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -1824,10 +1824,8 @@ static int select_input_picture(MPVMainEncContext *const m)
ret = av_frame_ref(s->new_pic, m->reordered_input_picture[0]->f);
if (ret < 0)
goto fail;
- for (int i = 0; i < MPV_MAX_PLANES; i++) {
- if (s->new_pic->data[i])
- s->new_pic->data[i] += INPLACE_OFFSET;
- }
+ for (int i = 0; i < MPV_MAX_PLANES; i++)
+ s->new_pic->data[i] += INPLACE_OFFSET;
}
s->c.cur_pic.ptr = m->reordered_input_picture[0];
m->reordered_input_picture[0] = NULL;
More information about the ffmpeg-cvslog
mailing list