]> git.sesse.net Git - vlc/commit
rotate filter: Avoid a crash
authorDerk-Jan Hartman <hartman@videolan.org>
Mon, 22 Jun 2009 18:52:53 +0000 (20:52 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Mon, 22 Jun 2009 19:03:41 +0000 (21:03 +0200)
commitfde2277f8f994c60b60372db98061ab1b72af3f3
treee582782ee5ffe1caed496cd554af0bb1285d9a47
parent573844a977ad1224efc9dde74e42f33d07ccc5c9
rotate filter: Avoid a crash

This fixes a DIVIDEBYZERO crash in the rotate filter. Does not seem like the right solution to me, but dionoea should probably look into that, since he wrote most of this filter.

This crash occured with http://streams.videolan.org/issues/HIGNFY%20S25E02%20-%20Part%201.flv

plane 1 (non Y-plane)
i_visible_lines = 119
p_pic->p[Y_PLANE].i_visible_pitch = 320
p_pic->p[Y_PLANE].i_visible_lines = 239
i_visible_pitch = 160
modules/video_filter/rotate.c