avcodec/mpegvideo_enc: Remove always-true branch
Always-true since1c40a17922which made4863671d88superfluous. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
00926669f7
commit
5b1e805653
1 changed files with 2 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue