• Ivan Kalvachev's avatar
    Fix bink audio playback outside of FFmpeg. · 093768c9
    Ivan Kalvachev authored
    There are 2 known Bink audio codecs. Additionally they have
    a different flavor if they are found inside Bink-b "BIKb" file.
    In order to guess the correct flavor, the demuxer sets the audio
    codec_tag to be the same as the file format tag.
    This causes problem because same tag is used for both audio codecs.
    The hack works in FFmpeg because audio codecs are identified by their
    codec_id, but other players rely on standard behavior.
    
    This fix removes the codec_tag hack and instead uses artificial
    extradata format to signal the codec flavor. This would also
    allow proper embedding of Bink audio in other containers.
    Signed-off-by: 's avatarIvan Kalvachev <ikalvachev@gmail.com>
    Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
    093768c9
binkaudio.c 9.31 KB