50
50
/* header decoding. MUST check the header before because no
51
51
consistency check is done there. Return 1 if free format found and
52
52
that the frame size must be computed externally */
55
55
/* useful helper to get mpeg audio stream infos. Return -1 if error in
56
56
header, otherwise the coded frame size in bytes */
57
int ff_mpa_decode_header(AVCodecContext *avctx, uint32_t head, int *sample_rate, int *channels, int *frame_size, int *bitrate);
57
int avpriv_mpa_decode_header(AVCodecContext *avctx, uint32_t head, int *sample_rate, int *channels, int *frame_size, int *bitrate);
59
59
/* fast header check for resync */
60
60
static inline int ff_mpa_check_header(uint32_t header){