1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-03 01:31:53 +02:00

substx3g: simplify usage of the spu->p_region

This commit is contained in:
Steve Lhomme 2023-10-27 13:51:33 +02:00
parent 262a572c98
commit 4d925edcd7

View File

@ -702,9 +702,8 @@ static block_t *GetStylBlock( const text_segment_t *p_segment, size_t i_styles )
static block_t * Encode( encoder_t *p_enc, subpicture_t *p_spu ) static block_t * Encode( encoder_t *p_enc, subpicture_t *p_spu )
{ {
VLC_UNUSED(p_enc); VLC_UNUSED(p_enc);
const text_segment_t *p_segments = (p_spu->p_region) const subpicture_region_t *p_region = p_spu->p_region;
? p_spu->p_region->p_text const text_segment_t *p_segments = p_region ? p_region->p_text : NULL;
: NULL;
size_t i_len = 0; size_t i_len = 0;
size_t i_styles = 0; size_t i_styles = 0;