Wrong version check in MP4 demuxer stsd box
We are writing our own MP4 file generator. We noticed VLC could not read our MP4 file when a AudioSampleEntry box of version=1 is used. The ISO/IEC 14496-12:2015(E) specification specifies that when an AudioSampleEntryV1 is used, its parent box should also have the version set to '1'.
We need the AudioSampleEntryV1 box to support 96kHz files.
The 'stsd' box is parsed by the function MP4_ReadBox_LtdContainer function and in there, there is a check that the version must be '0', which will not work here.