]> git.sesse.net Git - mlt/commitdiff
Sanity checks
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Wed, 1 Jun 2005 10:44:30 +0000 (10:44 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Wed, 1 Jun 2005 10:44:30 +0000 (10:44 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@731 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/avformat/filter_avcolour_space.c

index 217f703197582bbe119a7ab6b4836de71f28be20..3853a18d3b332a496e3d7e673c7d851122d3b791 100644 (file)
@@ -125,7 +125,7 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format *
    
        error = mlt_frame_get_image( this, image, format, width, height, 0 );
 
-       if ( error == 0 && *format != output_format )
+       if ( error == 0 && *format != output_format && *width > 0 && *height > 0 )
        {
                int in_fmt = convert_mlt_to_av_cs( *format );
                int out_fmt = convert_mlt_to_av_cs( output_format );