mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-11 17:55:21 +00:00
vf_interlace: merge FIELD_LOWER check
This commit is contained in:
parent
046f75a970
commit
15ea222778
@ -144,10 +144,10 @@ static void copy_picture_field(InterlaceContext *s,
|
||||
av_assert0(cols >= 0 || lines >= 0);
|
||||
|
||||
lines = (lines + (field_type == FIELD_UPPER)) / 2;
|
||||
if (field_type == FIELD_LOWER)
|
||||
if (field_type == FIELD_LOWER) {
|
||||
srcp += src_frame->linesize[plane];
|
||||
if (field_type == FIELD_LOWER)
|
||||
dstp += dst_frame->linesize[plane];
|
||||
}
|
||||
if (lowpass) {
|
||||
int srcp_linesize = src_frame->linesize[plane] * 2;
|
||||
int dstp_linesize = dst_frame->linesize[plane] * 2;
|
||||
|
Loading…
Reference in New Issue
Block a user