• Eduard Sinelnikov's avatar
    avformat/aiffdec: AIFF fix in case of ANNO · 7fcbebbe
    Eduard Sinelnikov authored
    Apple's AIFF protocol clearly states that each chucnk which is odd sized a padding should be added.
    In the old version of aiffdec adding of padding was done in `get_meta`. And in case of unknown chunk name it was done in defalut case.
    The new version has deleted the padding in default case and added padding adding after the switch.
    But the new version didn't removed the padding adding in the `get_meta` function so in some cases padding was added twice which leaded to a bug.
    Fixes: sample.aiff
    Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>