//printf("FileList::open_file 2\n", asset->use_header);
//printf("FileList::open_file %d\n", __LINE__);
asset->format = frame_type;
+ int width = asset->width;
+ int height = asset->height;
result = read_frame_header(asset->path);
+ asset->actual_width = asset->width;
+ if( width ) asset->width = width;
+ asset->actual_height = asset->height;
+ if( height ) asset->height = height;
asset->layers = 1;
- if(!asset->frame_rate)
+ if( !asset->frame_rate )
asset->frame_rate = 1;
asset->video_length = -1;
}
data->allocate_compressed_data(ostat.st_size);
data->set_compressed_size(ostat.st_size);
(void)fread(data->get_data(), ostat.st_size, 1, fd);
- temp = new VFrame(asset->width, asset->height,
+ temp = new VFrame(asset->actual_width, asset->actual_height,
frame->get_color_model(), 0);
read_frame(temp, data);
break;
}
else
{
- temp = new VFrame(asset->width, asset->height, frame->get_color_model(), 0);
+ temp = new VFrame(asset->actual_width, asset->actual_height,
+ frame->get_color_model(), 0);
read_frame(temp, asset->path);
}
}