FFmpeg
Data Structures | Macros | Functions | Variables
mpegaudio_parser.c File Reference
#include "parser.h"
#include "mpegaudiodecheader.h"
#include "libavutil/common.h"
#include "libavformat/apetag.h"
#include "libavformat/id3v1.h"

Go to the source code of this file.

Data Structures

struct  MpegAudioParseContext
 

Macros

#define MPA_HEADER_SIZE   4
 
#define SAME_HEADER_MASK   (0xffe00000 | (3 << 17) | (3 << 10) | (3 << 19))
 

Functions

static int mpegaudio_parse (AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
 

Variables

const AVCodecParser ff_mpegaudio_parser
 

Macro Definition Documentation

◆ MPA_HEADER_SIZE

#define MPA_HEADER_SIZE   4

Definition at line 37 of file mpegaudio_parser.c.

◆ SAME_HEADER_MASK

#define SAME_HEADER_MASK   (0xffe00000 | (3 << 17) | (3 << 10) | (3 << 19))

Definition at line 40 of file mpegaudio_parser.c.

Function Documentation

◆ mpegaudio_parse()

static int mpegaudio_parse ( AVCodecParserContext s1,
AVCodecContext avctx,
const uint8_t **  poutbuf,
int poutbuf_size,
const uint8_t *  buf,
int  buf_size 
)
static

Definition at line 43 of file mpegaudio_parser.c.

Variable Documentation

◆ ff_mpegaudio_parser

const AVCodecParser ff_mpegaudio_parser
Initial value:
= {
.priv_data_size = sizeof(MpegAudioParseContext),
.parser_parse = mpegaudio_parse,
.parser_close = ff_parse_close,
}

Definition at line 139 of file mpegaudio_parser.c.

ff_parse_close
void ff_parse_close(AVCodecParserContext *s)
Definition: parser.c:288
MpegAudioParseContext
Definition: mpegaudio_parser.c:29
AV_CODEC_ID_MP3ADU
@ AV_CODEC_ID_MP3ADU
Definition: codec_id.h:455
AV_CODEC_ID_MP3
@ AV_CODEC_ID_MP3
preferred ID for decoding MPEG audio layer 1, 2 or 3
Definition: codec_id.h:443
AV_CODEC_ID_MP2
@ AV_CODEC_ID_MP2
Definition: codec_id.h:442
mpegaudio_parse
static int mpegaudio_parse(AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
Definition: mpegaudio_parser.c:43
AV_CODEC_ID_MP1
@ AV_CODEC_ID_MP1
Definition: codec_id.h:484