Skip to content
  • Filip Roséen's avatar
    demux/mp4: store length of payload in MP4_Box_data_string_t · 2750558c
    Filip Roséen authored and François Cartegnie's avatar François Cartegnie committed
    
    
    MP4_ReadBox_String is invoked for boxes that contains raw
    byte-content, though there is nothing saying that this raw-byte
    sequence does not contain a null-byte ('\0').
    
    If the sequence contains a null-byte, then there is no way (in the
    previous implementation) for things working with the box-content to
    access data that follows it (given that one cannot know if the
    null-byte is the end-of-data terminator, or simply part of the
    payload).
    
    These changes make sure that the entire contents can be accessed by
    including the length of the contents in MP4_Box_data_string_t.
    
    Signed-off-by: default avatarFrancois Cartegnie <fcvlcdev@free.fr>
    2750558c