OSDN Git Service

vf_interlace: also assert for height
authorVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 2 Dec 2014 14:58:39 +0000 (14:58 +0000)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Mon, 5 Jan 2015 14:35:46 +0000 (15:35 +0100)
libavfilter/vf_interlace.c

index 3e2a044..0b2444c 100644 (file)
@@ -141,7 +141,7 @@ static void copy_picture_field(InterlaceContext *s,
         uint8_t *dstp = dst_frame->data[plane];
         const uint8_t *srcp = src_frame->data[plane];
 
-        av_assert0(cols >= 0);
+        av_assert0(cols >= 0 || lines >= 0);
 
         lines = (lines + (field_type == FIELD_UPPER)) / 2;
         if (field_type == FIELD_LOWER)