X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fcore%2Ffilter_gamma.c;h=5417afd3bd94f7e42812120ffb3ec3f0ccb4cc05;hb=82381ce474e1d1a749d130e1461657e5d6167125;hp=213bc3adb72f1a9488ae08e32c114231f58a90a6;hpb=598f7732f9affad93b6556ddf185ff6b9d295643;p=melted 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; } -