fix broken gamma
authorddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Fri, 12 Mar 2004 20:35:57 +0000 (20:35 +0000)
committerddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Fri, 12 Mar 2004 20:35:57 +0000 (20:35 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@208 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/core/filter_gamma.c

index 213bc3a..5417afd 100644 (file)
@@ -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;
 }
-