diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-11-03 02:21:49 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-03 02:38:30 +0100 |
commit | ac2a3a7a05197844f01ddeea972cfbbc511e1efb (patch) | |
tree | 011053c2ae48fbac0aaed1f261ce7be59e33ddeb | |
parent | 03764f6735411148d6768e8a7cf064f26cf6c65b (diff) | |
download | ffmpeg-ac2a3a7a05197844f01ddeea972cfbbc511e1efb.tar.gz |
vf_tinterlace: check av_image_get_linesize() return value
Fixes CID703717
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavfilter/vf_tinterlace.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/vf_tinterlace.c b/libavfilter/vf_tinterlace.c index 70e1eab092..6cc8ad6fc9 100644 --- a/libavfilter/vf_tinterlace.c +++ b/libavfilter/vf_tinterlace.c @@ -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]; |