]> git.sesse.net Git - mlt/commitdiff
filter_luma.c: bugfix testing b_frame's dimensions
authorddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Fri, 19 Oct 2007 06:07:23 +0000 (06:07 +0000)
committerddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Fri, 19 Oct 2007 06:07:23 +0000 (06:07 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1033 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/core/filter_luma.c

index f981efdaece721a4ef2f664ce22c4d9bcbcb4c31..0e2afdb2e4dea1c506b1ed1aad5d2a7e6ddfbacf 100644 (file)
@@ -39,6 +39,7 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format *
        mlt_properties properties = MLT_FILTER_PROPERTIES( filter );
        mlt_transition luma = mlt_properties_get_data( properties, "luma", NULL );
        mlt_frame b_frame = mlt_properties_get_data( properties, "frame", NULL );
+       mlt_properties b_frame_props = b_frame ? MLT_FRAME_PROPERTIES( b_frame ) : NULL;
        int out = mlt_properties_get_int( properties, "period" );
        
        if ( out == 0 )
@@ -58,7 +59,7 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format *
                }
        }
 
-       if ( b_frame == NULL || mlt_properties_get_int( b_frame, "width" ) != *width || mlt_properties_get_int( b_frame, "height" ) != *height )
+       if ( b_frame == NULL || mlt_properties_get_int( b_frame_props, "width" ) != *width || mlt_properties_get_int( b_frame_props, "height" ) != *height )
        {
                b_frame = mlt_frame_init( );
                mlt_properties_set_data( properties, "frame", b_frame, 0, ( mlt_destructor )mlt_frame_close, NULL );