History

vf_tinterlace: check av_image_get_linesize() return value

Fixes CID703717 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer committed 14 years ago

Commit ac2a3a71 parent 03764f61 file · +4 −0Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_tinterlace.c+4−0
@@ -188,6 +188,10 @@ void copy_picture_field(uint8_t *dst[4], int dst_linesize[4], · 187 unmodified lines
188188 int linesize = av_image_get_linesize(format, w, plane);
189189 uint8_t *dstp = dst[plane];
190190 const uint8_t *srcp = src[plane];
191+
192+ if (linesize < 0)
193+ return;
194+
191195 lines /= k;
192196 if (src_field == FIELD_LOWER)
193197 srcp += src_linesize[plane];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t