diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-12-02 14:58:41 +0000 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-01-05 15:35:46 +0100 |
commit | 15ea222778caaec0877b3f9938140b707c931d96 (patch) | |
tree | 4c5e8be47b20c95f155c6994ba04939dcca5ea7a | |
parent | 046f75a970701b4c947d38bfd2186dcc5f2ddae2 (diff) | |
download | ffmpeg-15ea222778caaec0877b3f9938140b707c931d96.tar.gz |
vf_interlace: merge FIELD_LOWER check
-rw-r--r-- | libavfilter/vf_interlace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_interlace.c b/libavfilter/vf_interlace.c index 0b2444c188..0f551cad16 100644 --- a/libavfilter/vf_interlace.c +++ b/libavfilter/vf_interlace.c @@ -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; |