You've already forked FFmpeg
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 since1c40a17922
which made4863671d88
superfluous. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@ -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);
|
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;
|
||||||
|
Reference in New Issue
Block a user