From: ddennedy Date: Fri, 12 Mar 2004 20:35:57 +0000 (+0000) Subject: fix broken gamma X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=82381ce474e1d1a749d130e1461657e5d6167125;p=melted fix broken gamma git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@208 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/src/modules/core/filter_gamma.c b/src/modules/core/filter_gamma.c index 213bc3a..5417afd 100644 --- a/src/modules/core/filter_gamma.c +++ b/src/modules/core/filter_gamma.c @@ -33,7 +33,7 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format * { int error = mlt_frame_get_image( this, image, format, width, height, 1 ); - if ( error != 0 && *format == mlt_image_yuv422 ) + if ( error == 0 && *format == mlt_image_yuv422 ) { // Get the gamma value double gamma = mlt_properties_get_double( mlt_frame_properties( this ), "gamma" ); @@ -87,4 +87,3 @@ mlt_filter filter_gamma_init( char *arg ) } return this; } -