Commit 8d860e29 authored by Francois Cartegnie's avatar Francois Cartegnie

codec: subsusf: fix NULL dereference

parent 0b6165af
......@@ -904,7 +904,10 @@ static subpicture_region_t *ParseUSFString( decoder_t *p_dec,
{
subpicture_region_t *p_text_region;
psz_end += strcspn( psz_end, ">" ) + 1;
if( psz_end )
psz_end += strcspn( psz_end, ">" ) + 1;
else
psz_end = psz_subtitle + strlen( psz_subtitle );
p_text_region = CreateTextRegion( p_dec,
psz_subtitle,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment