filters/gp_filter_resize_alloc: Check w and hmaster
commit200d270c0bdbb20d7aa1b1b82de8497699227811
authorCyril Hrubis <metan@ucw.cz>
Sat, 10 Feb 2018 15:07:07 +0000 (10 16:07 +0100)
committerCyril Hrubis <metan@ucw.cz>
Sat, 10 Feb 2018 15:07:07 +0000 (10 16:07 +0100)
tree3df269aa35c5f2439375569dba437b9a69550e18
parent2bb5961d3e38dc828df9182a02d51c13943a7470
filters/gp_filter_resize_alloc: Check w and h

Check that at least one of w and h are non-zero.

If one is zero the second one is computed accordingly to
new_size/old_size ratio.

Signed-off-by: Cyril Hrubis <metan@ucw.cz>
libs/filters/GP_Resize.c