FFmpeg
Macros | Functions | Variables
aacdec.c File Reference
#include "libavutil/avassert.h"
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "avio_internal.h"
#include "internal.h"
#include "id3v1.h"
#include "id3v2.h"
#include "apetag.h"

Go to the source code of this file.

Macros

#define ADTS_HEADER_SIZE   7
 

Functions

static int adts_aac_probe (const AVProbeData *p)
 
static int adts_aac_resync (AVFormatContext *s)
 
static int adts_aac_read_header (AVFormatContext *s)
 
static int handle_id3 (AVFormatContext *s, AVPacket *pkt)
 
static int adts_aac_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

const AVInputFormat ff_aac_demuxer
 

Macro Definition Documentation

◆ ADTS_HEADER_SIZE

#define ADTS_HEADER_SIZE   7

Definition at line 32 of file aacdec.c.

Function Documentation

◆ adts_aac_probe()

static int adts_aac_probe ( const AVProbeData p)
static

Definition at line 34 of file aacdec.c.

◆ adts_aac_resync()

static int adts_aac_resync ( AVFormatContext s)
static

Definition at line 83 of file aacdec.c.

Referenced by adts_aac_read_header(), and adts_aac_read_packet().

◆ adts_aac_read_header()

static int adts_aac_read_header ( AVFormatContext s)
static

Definition at line 104 of file aacdec.c.

◆ handle_id3()

static int handle_id3 ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 135 of file aacdec.c.

Referenced by adts_aac_read_packet().

◆ adts_aac_read_packet()

static int adts_aac_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 166 of file aacdec.c.

Variable Documentation

◆ ff_aac_demuxer

const AVInputFormat ff_aac_demuxer
Initial value:
= {
.name = "aac",
.long_name = NULL_IF_CONFIG_SMALL("raw ADTS AAC (Advanced Audio Coding)"),
.read_probe = adts_aac_probe,
.read_header = adts_aac_read_header,
.read_packet = adts_aac_read_packet,
.extensions = "aac",
.mime_type = "audio/aac,audio/aacp,audio/x-aac",
.raw_codec_id = AV_CODEC_ID_AAC,
}

Definition at line 209 of file aacdec.c.

adts_aac_read_packet
static int adts_aac_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: aacdec.c:166
AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:468
adts_aac_read_header
static int adts_aac_read_header(AVFormatContext *s)
Definition: aacdec.c:104
adts_aac_probe
static int adts_aac_probe(const AVProbeData *p)
Definition: aacdec.c:34
AV_CODEC_ID_AAC
@ AV_CODEC_ID_AAC
Definition: codec_id.h:424
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117