27 #ifndef AVCODEC_MPEGAUDIODECHEADER_H 28 #define AVCODEC_MPEGAUDIODECHEADER_H 32 #define MP3_MASK 0xFFFE0CCF 34 #define MPA_DECODE_HEADER \ 36 int error_protection; \ 39 int sample_rate_index; \ 53 int avpriv_mpegaudio_decode_header(
MPADecodeHeader *s, uint32_t header);
57 int ff_mpa_decode_header(uint32_t head,
int *sample_rate,
58 int *channels,
int *frame_size,
int *bitrate,
enum AVCodecID *codec_id);
61 static inline int ff_mpa_check_header(uint32_t header){
63 if ((header & 0xffe00000) != 0xffe00000)
66 if ((header & (3<<17)) == 0)
69 if ((header & (0xf<<12)) == 0xf<<12)
72 if ((header & (3<<10)) == 3<<10)
AVCodecID
Identify the syntax and semantics of the bitstream.
Definition: avcodec.h:215
Libavcodec external API header.