Commit ac2a3a7a authored by Michael Niedermayer's avatar Michael Niedermayer

vf_tinterlace: check av_image_get_linesize() return value

Fixes CID703717
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 03764f67
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment