X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fcore%2Ftransition_luma.c;h=a518e0666d7474e42ee6fd9b41cc2b6e35002567;hb=03fdfa6be1e0ff3c0a08b7587165ec32e99f1051;hp=40d5ca5787a927b27ced5ccb04d4be5f68f3a857;hpb=7ac623df605d7daa8125b189cf77a937cfe03888;p=melted diff --git a/src/modules/core/transition_luma.c b/src/modules/core/transition_luma.c index 40d5ca5..a518e06 100644 --- a/src/modules/core/transition_luma.c +++ b/src/modules/core/transition_luma.c @@ -106,7 +106,7 @@ static inline int dissolve_yuv( mlt_frame this, mlt_frame that, float weight, in // image processing functions -static inline uint32_t smoothstep( int32_t edge1, int32_t edge2, uint32_t a ) +static uint32_t smoothstep( int32_t edge1, int32_t edge2, uint32_t a ) { if ( a < edge1 ) return 0; @@ -166,7 +166,7 @@ static void luma_composite( mlt_frame a_frame, mlt_frame b_frame, int luma_width int32_t i_softness = softness * ( 1 << 16 ); - int field_count = field_order < 0 ? 1 : 2; + int field_count = field_order <= 0 ? 1 : 2; int field_stride_src = field_count * stride_src; int field_stride_dest = field_count * stride_dest;