Browse Source

vf_tinterlace: check av_image_get_linesize() return value

Fixes CID703717
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 12 years ago
parent
commit
ac2a3a7a05
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavfilter/vf_tinterlace.c

+ 4
- 0
libavfilter/vf_tinterlace.c View File

@@ -188,6 +188,10 @@ void copy_picture_field(uint8_t *dst[4], int dst_linesize[4],
int linesize = av_image_get_linesize(format, w, plane);
uint8_t *dstp = dst[plane];
const uint8_t *srcp = src[plane];

if (linesize < 0)
return;

lines /= k;
if (src_field == FIELD_LOWER)
srcp += src_linesize[plane];


Loading…
Cancel
Save