mirror of
https://github.com/librempeg/librempeg
synced 2024-11-23 19:58:59 +00:00
vf_tinterlace: check av_image_get_linesize() return value
Fixes CID703717 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
03764f6735
commit
ac2a3a7a05
@ -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);
|
int linesize = av_image_get_linesize(format, w, plane);
|
||||||
uint8_t *dstp = dst[plane];
|
uint8_t *dstp = dst[plane];
|
||||||
const uint8_t *srcp = src[plane];
|
const uint8_t *srcp = src[plane];
|
||||||
|
|
||||||
|
if (linesize < 0)
|
||||||
|
return;
|
||||||
|
|
||||||
lines /= k;
|
lines /= k;
|
||||||
if (src_field == FIELD_LOWER)
|
if (src_field == FIELD_LOWER)
|
||||||
srcp += src_linesize[plane];
|
srcp += src_linesize[plane];
|
||||||
|
Loading…
Reference in New Issue
Block a user