• Limin Wang's avatar
    avformat/mp3dec: replace SAME_HEADER_MASK with MP3_MASK · 72915ca8
    Limin Wang authored
    mp3 header bitstream syntax:
    header()
    {
        syncword   12bits bslsf
        id         1bit    bslsf
        layer      2bit    bslsf
        protection_bit 1bit bslsf
        bitrate_index 4bits bslsf
        sampling_frequency 2bits bslsf
        padding_bit  1bit bslsf
        private_bit 1bit bslsf
        mode 2bits bslsf
        mode_extension 2bits bslsf
        copyright 1bit bslsf
        original/home 1bit bslsf
        emphasis 2bits bslsf
    }
    
    if the header is masking with MP3_MASK(0xFFFE0CCF), below fields will be cleared:
    protection_bit, bitrate_index, sampling_freqency, mode
    
    with SAME_HEADER_MASK(0xFFFE0C00), extra below fields will be cleared which didn't make
    sense:
    mode_extension, copyright, original/home, emphasis
    
    As the MP3_MASK is good for same mp3 header masking and is defined in the
    header, so it's preferable to remove SAME_HEADER_MASK to keep the masking same.
    Signed-off-by: 's avatarLimin Wang <lance.lmwang@gmail.com>
    Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
    72915ca8
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...