]> git.sesse.net Git - mlt/commitdiff
producer_framebuffer.c: a little cleanup from last commit
authorddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Fri, 24 Oct 2008 22:56:25 +0000 (22:56 +0000)
committerddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Fri, 24 Oct 2008 22:56:25 +0000 (22:56 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1201 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/kdenlive/producer_framebuffer.c

index fa0ac0f165276e2651cc937cd92898ff7831eea1..d028eaac916b00a6971a9500d1da1836ba327bcd 100644 (file)
@@ -224,11 +224,11 @@ mlt_producer producer_framebuffer_init( mlt_profile profile, mlt_service_type ty
        
        if ( ptr )
        {
-               speed = atof( ++ptr );
+               speed = atof( ptr + 1 );
                if ( speed != 0.0 )
                        // If speed was valid, then strip it and the delimiter.
                        // Otherwise, an invalid speed probably means this '?' was not a delimiter.
-                       *(--ptr) = '\0';
+                       *ptr = '\0';
        }
                
        real_producer = mlt_factory_producer( profile, "fezzik", props );