]> git.sesse.net Git - mlt/commitdiff
Fix bug parsing rect string with %.
authorDan Dennedy <dan@dennedy.org>
Tue, 14 Jan 2014 06:01:23 +0000 (22:01 -0800)
committerDan Dennedy <dan@dennedy.org>
Tue, 14 Jan 2014 06:01:23 +0000 (22:01 -0800)
src/framework/mlt_property.c

index 4b5f4cc38b7fbb454545bb4aa6e7afcb0940f417..e7e02f1f0013dc1c928f6d6672bffd51bb55414a 100644 (file)
@@ -1456,8 +1456,15 @@ mlt_rect mlt_property_get_rect( mlt_property self, locale_t locale )
                        if ( p != value )
                        {
                                if ( p[0] == '%' )
+                               {
                                        temp /= 100.0;
+                                       p ++;
+                               }
+
+                               // Chomp the delimiter.
                                if ( *p ) p ++;
+
+                               // Assign the value to appropriate field.
                                switch( count )
                                {
                                        case 0: rect.x = temp; break;