Skip to content
  • Filip Roséen's avatar
    demux/ttml: fix style-attribute generation on merge · 5ed17f84
    Filip Roséen authored and Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen committed
    
    
    If MergeStyles was invoked with *pp_dest == NULL, the resulting string
    would contain unspecified/undefined data (given that passing NULL as
    value for the corresponding format-specifier is undefined-behavior).
    
    Most platforms will either print "" or "(null)" for such cases, and
    the latter will cause problems with the decoder.
    
    These changes fixes the issue by explicitly printing an empty string
    if "*pp_dest == NULL".
    
    fixes #17414
    
    Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
    5ed17f84