On 02/12/14 15:58, Vittorio Giovara wrote:
---
  libavfilter/vf_interlace.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/vf_interlace.c b/libavfilter/vf_interlace.c
index 155b394..fda206e 100644
--- a/libavfilter/vf_interlace.c
+++ b/libavfilter/vf_interlace.c
@@ -123,10 +123,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;

Ok.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to