X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Favformat%2Ffilter_avcolour_space.c;h=247f6e5970ebb18f7872a8a3dc482229725b11a4;hb=cdf7162ebc07120e92166a0e43eaba21ecca25ba;hp=3853a18d3b332a496e3d7e673c7d851122d3b791;hpb=0e74ed81ec64c74087d3576b55ad7c09ce08e1bb;p=melted diff --git a/src/modules/avformat/filter_avcolour_space.c b/src/modules/avformat/filter_avcolour_space.c index 3853a18..247f6e5 100644 --- a/src/modules/avformat/filter_avcolour_space.c +++ b/src/modules/avformat/filter_avcolour_space.c @@ -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 && *width > 0 && *height > 0 ) + if ( error == 0 && *format != output_format && *image != NULL ) { int in_fmt = convert_mlt_to_av_cs( *format ); int out_fmt = convert_mlt_to_av_cs( output_format );