1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-19 05:49:09 +02:00
FFmpeg/libavformat
Limin Wang 72915ca8ba avformat/mp3dec: replace SAME_HEADER_MASK with MP3_MASK
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: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-11-11 20:13:36 +01:00
..
2019-05-20 11:58:12 -07:00
2019-05-20 11:58:12 -07:00
2019-08-13 15:38:57 +02:00
2019-10-29 16:20:33 +01:00
2019-03-20 18:38:48 +01:00
2019-08-23 22:24:07 +02:00
2019-05-20 11:58:12 -07:00
2019-10-24 19:45:17 +02:00
2019-09-02 23:08:43 +02:00
2019-10-21 21:05:14 -03:00
2019-10-08 13:47:16 +08:00
2019-05-20 11:58:12 -07:00
2019-09-27 12:15:50 +02:00
2019-09-02 23:08:43 +02:00
2019-03-20 18:38:48 +01:00
2019-10-08 13:46:42 +08:00
2019-11-03 11:52:32 +01:00
2019-06-14 21:36:39 +02:00
2019-06-29 19:22:19 +02:00
2019-07-14 22:17:43 +02:00