X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fgtk2%2Ffilter_rescale.c;h=c57e33d1bd3a86ad59b5a9c00b65f950b82ae3e0;hb=b9dbda40ec64f1d4f58e7da87125d38aa3ab54d1;hp=02b76442a769f6a27b30247b947baa48911a5bf2;hpb=2af8bb9f6a61f6510aab8f45abf5f26e9e619c78;p=melted diff --git a/src/modules/gtk2/filter_rescale.c b/src/modules/gtk2/filter_rescale.c index 02b7644..c57e33d 100644 --- a/src/modules/gtk2/filter_rescale.c +++ b/src/modules/gtk2/filter_rescale.c @@ -38,6 +38,8 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format * *width = 720; if ( *height == 0 ) *height = 576; + if ( *width < 2 || *height < 6 ) + return 1; mlt_properties properties = mlt_frame_properties( this ); int iwidth = *width; @@ -220,4 +222,3 @@ mlt_filter filter_rescale_init( char *arg ) } return this; } -