Skip to content
Snippets Groups Projects
Commit 9a0d9c98 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

spudec: set the subpicture original dimensions based on the SPU properties

If p_spu_properties->i_x/y is set (a few lines below), then the width/height
too.
parent 06993b63
No related branches found
No related tags found
1 merge request!4909DVD SPU: set the subpicture original dimensions based on the SPU properties
Pipeline #528643 passed with stages
in 31 minutes and 55 seconds
......@@ -871,6 +871,13 @@ static int Render( decoder_t *p_dec, subpicture_t *p_spu,
}
vlc_spu_regions_push(&p_spu->regions, p_region);
if (p_spu->i_original_picture_width == 0 && p_spu->i_original_picture_height == 0)
{
assert(p_spu_properties->i_width != 0);
assert(p_spu_properties->i_height != 0);
p_spu->i_original_picture_width = p_spu_properties->i_width;
p_spu->i_original_picture_height = p_spu_properties->i_height;
}
p_region->b_absolute = true;
p_region->i_x = p_spu_properties->i_x;
p_region->i_y = p_spu_properties->i_y + p_spu_data->i_y_top_offset;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment