- switch(frame->get_color_model())
- {
- case BC_COMPRESSED:
- frame->allocate_compressed_data(ostat.st_size);
- frame->set_compressed_size(ostat.st_size);
- (void)fread(frame->get_data(), ostat.st_size, 1, fd);
- break;
- default:
- 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->actual_width, asset->actual_height,
- frame->get_color_model(), 0);
- read_frame(temp, data);
- break;
+ switch(frame->get_color_model()) {
+ case BC_COMPRESSED:
+ frame->allocate_compressed_data(ostat.st_size);
+ frame->set_compressed_size(ostat.st_size);
+ (void)fread(frame->get_data(), ostat.st_size, 1, fd);
+ break;
+ default:
+ 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(aw, ah, color_model);
+ read_frame(temp, data);
+ break;