1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

avcodec/mpegvideo_enc: Remove always-true branch

Always-true since 1c40a17922
which made 4863671d88 superfluous.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-06-13 08:03:22 +02:00
parent 00926669f7
commit 5b1e805653

View File

@ -1824,11 +1824,9 @@ static int select_input_picture(MPVMainEncContext *const m)
ret = av_frame_ref(s->new_pic, m->reordered_input_picture[0]->f); ret = av_frame_ref(s->new_pic, m->reordered_input_picture[0]->f);
if (ret < 0) if (ret < 0)
goto fail; goto fail;
for (int i = 0; i < MPV_MAX_PLANES; i++) { for (int i = 0; i < MPV_MAX_PLANES; i++)
if (s->new_pic->data[i])
s->new_pic->data[i] += INPLACE_OFFSET; s->new_pic->data[i] += INPLACE_OFFSET;
} }
}
s->c.cur_pic.ptr = m->reordered_input_picture[0]; s->c.cur_pic.ptr = m->reordered_input_picture[0];
m->reordered_input_picture[0] = NULL; m->reordered_input_picture[0] = NULL;
av_assert1(s->c.mb_width == s->c.buffer_pools.alloc_mb_width); av_assert1(s->c.mb_width == s->c.buffer_pools.alloc_mb_width);