From 82381ce474e1d1a749d130e1461657e5d6167125 Mon Sep 17 00:00:00 2001 From: ddennedy Date: Fri, 12 Mar 2004 20:35:57 +0000 Subject: [PATCH] fix broken gamma git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@208 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/modules/core/filter_gamma.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) 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; } - -- 1.7.4.4