From 0e74ed81ec64c74087d3576b55ad7c09ce08e1bb Mon Sep 17 00:00:00 2001 From: lilo_booter Date: Wed, 1 Jun 2005 10:44:30 +0000 Subject: [PATCH] Sanity checks 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 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/modules/avformat/filter_avcolour_space.c b/src/modules/avformat/filter_avcolour_space.c index 217f703..3853a18 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 ) + 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 ); -- 1.7.4.4