Fix compile error and whitespace.
Fix compile error and whitespace.

* fix: error: 'for' loop initial declarations are only allowed in C99
       or C11 mode
* Make whitespace consistent

mltframework/mlt,mltframework/mlt,mltframework/mlt,mltframework/mlt,mltframework/mlt,j-b-m/mlt,mltframework/mlt,j-b-m/mlt,j-b-m/mlt,j-b-m/mlt,mltframework/mlt,j-b-m/mlt,j-b-m/mlt,mltframework/mlt,mltframework/mlt,j-b-m/mlt,j-b-m/mlt,j-b-m/mlt,j-b-m/mlt,mltframework/mlt