FFmpeg
Loading...
Searching...
No Matches
mpegaudiodecheader.c File Reference

MPEG Audio header decoder. More...

#include <string.h>
#include "libavutil/error.h"
#include "libavutil/macros.h"
#include "libavutil/mem.h"
#include "mpegaudio.h"
#include "mpegaudiodata.h"
#include "mpegaudiodecheader.h"

Go to the source code of this file.

Functions

int ff_mpegaudio_decode_header (MPADecodeHeader2 *s, uint32_t header)
 
int avpriv_mpegaudio_decode_header2 (MPADecodeHeader2 **phdr, uint32_t header)
 Decode an MPEG audio header into *phdr, which is allocated if it is NULL.
 
int ff_mpa_decode_header (uint32_t head, int *sample_rate, int *channels, int *frame_size, int *bit_rate, enum AVCodecID *codec_id)
 

Detailed Description

MPEG Audio header decoder.

Definition in file mpegaudiodecheader.c.

Function Documentation

◆ ff_mpegaudio_decode_header()

int ff_mpegaudio_decode_header ( MPADecodeHeader2 * s,
uint32_t header )

◆ avpriv_mpegaudio_decode_header2()

int avpriv_mpegaudio_decode_header2 ( MPADecodeHeader2 ** phdr,
uint32_t header )

Decode an MPEG audio header into *phdr, which is allocated if it is NULL.

The header must have been checked beforehand, as no consistency check is done here.

Returns
1 if free format was found and the frame size must be computed externally, 0 on success, a negative AVERROR code on failure

Definition at line 128 of file mpegaudiodecheader.c.

Referenced by check(), main(), mp3_parse_vbr_tags(), mp3_read_probe(), mp3_write_audio_packet(), and mp3_write_xing().

◆ ff_mpa_decode_header()

int ff_mpa_decode_header ( uint32_t head,
int * sample_rate,
int * channels,
int * frame_size,
int * bit_rate,
enum AVCodecID * codec_id )

Definition at line 176 of file mpegaudiodecheader.c.

Referenced by ffat_create_decoder(), and mpegaudio_parse().