Commit e62911ab authored by Jean-Paul Saman's avatar Jean-Paul Saman

Don't scale when source or destination width/height is zero. Fixes a arithmic...

Don't scale when source or destination width/height is zero. Fixes a arithmic exception (division by zero).
parent cdab2dbf
......@@ -114,6 +114,14 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
if( !p_pic ) return NULL;
if( (p_filter->fmt_in.video.i_height == 0) ||
(p_filter->fmt_in.video.i_width == 0) )
return NULL;
if( (p_filter->fmt_out.video.i_height == 0) ||
(p_filter->fmt_out.video.i_width == 0) )
return NULL;
/* Request output picture */
p_pic_dst = p_filter->pf_vout_buffer_new( p_filter );
if( !p_pic_dst )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment