• Andreas Rheinhardt's avatar
    avformat/matroskadec: Add a workaround for missing WavPack extradata · 048bc3fe
    Andreas Rheinhardt authored
    mkvmerge versions 6.2 to 40.0 had a bug that made it not propagate the
    WavPack extradata (containing the WavPack version) during remuxing from
    a Matroska file; currently our demuxer would treat every WavPack block
    encountered as invalid data (unless the WavPack stream is to be
    discarded (i.e. the streams discard is >= AVDISCARD_ALL)) and try to
    resync to the next level 1 element.
    
    Luckily, the WavPack version is currently not really important; so we
    fix this problem by assuming a version. David Bryant, the creator of
    WavPack, recommended using version 0x410 (the most recent version) for
    this. And this is what this commit does.
    
    A FATE-test for this has been added.
    Reviewed-by: 's avatarDavid Bryant <david@wavpack.com>
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
    048bc3fe
matroskadec.c 157 KB