git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@230
d19143bc-622f-0410-bfdd-
b5b2a6649095
mlt_properties_set_int( properties, "width", *width );
mlt_properties_set_int( properties, "height", *height );
+ mlt_properties_set_int( properties, "aspect_ratio", 1 );
switch( *format )
{
strncpy( cmd_arg->root_dir, value, 1023 );
/* add a trailing slash if needed */
- if ( cmd_arg->root_dir[ len - 1 ] != '/')
+ if ( len && cmd_arg->root_dir[ len - 1 ] != '/')
{
cmd_arg->root_dir[ len ] = '/';
cmd_arg->root_dir[ len + 1 ] = '\0';
filename ++;
}
- if ( filename[0] == '/' )
+ if ( strlen( cmd_arg->root_dir ) && filename[0] == '/' )
filename++;
snprintf( fullname, 1023, "%s%s", cmd_arg->root_dir, filename );