Video decoder: fill tile::data_len with actual val

Fill length of video_frame before display_put_frame().
This commit is contained in:
Martin Pulec
2015-12-01 15:38:24 +01:00
parent b8a1e9e01b
commit 871a088d4c

View File

@@ -490,16 +490,21 @@ static void *decompress_thread(void *args) {
break;
}
struct video_frame *output;
if(decoder->postprocess) {
output = decoder->pp_frame;
} else {
output = decoder->frame;
}
for (unsigned int i = 0; i < output->tile_count; ++i) {
output->tiles[i].data_len = msg->decompressed_frame->tiles[i].data_len;
}
if(decoder->decoder_type == EXTERNAL_DECODER) {
int tile_width = decoder->received_vid_desc.width; // get_video_mode_tiles_x(decoder->video_mode);
int tile_height = decoder->received_vid_desc.height; // get_video_mode_tiles_y(decoder->video_mode);
int x, y;
struct video_frame *output;
if(decoder->postprocess) {
output = decoder->pp_frame;
} else {
output = decoder->frame;
}
for (x = 0; x < get_video_mode_tiles_x(decoder->video_mode); ++x) {
for (y = 0; y < get_video_mode_tiles_y(decoder->video_mode); ++y) {
int pos = x + get_video_mode_tiles_x(decoder->video_mode) * y;