]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_property.c
Fix bug parsing rect string with %.
[mlt] / 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;