- asset->actual_width = asset->width;
- if( width ) asset->width = width;
- asset->actual_height = asset->height;
- if( height ) asset->height = height;
+ asset->video_length = -1;
+ }
+ else
+ result = 1;
+ if( !result ) {
+ asset->actual_width = asset->width;
+ asset->actual_height = asset->height;
+ int scale = asset->proxy_scale;
+ if( scale ) {
+ asset->width = asset->actual_width * scale;
+ asset->height = asset->actual_height * scale;
+ }
+ else { // can_scale_input
+ if( width ) asset->width = width;
+ if( height ) asset->height = height;
+ }