FFmpeg
Macros | Functions | Variables
aacdec.c File Reference
#include "libavutil/avassert.h"
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "avio_internal.h"
#include "demux.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 FFInputFormat ff_aac_demuxer
 

Macro Definition Documentation

◆ ADTS_HEADER_SIZE

#define ADTS_HEADER_SIZE   7

Definition at line 33 of file aacdec.c.

Function Documentation

◆ adts_aac_probe()

static int adts_aac_probe ( const AVProbeData p)
static

Definition at line 35 of file aacdec.c.

◆ adts_aac_resync()

static int adts_aac_resync ( AVFormatContext s)
static

Definition at line 84 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 107 of file aacdec.c.

◆ handle_id3()

static int handle_id3 ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 138 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 168 of file aacdec.c.

Variable Documentation

◆ ff_aac_demuxer

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

Definition at line 208 of file aacdec.c.

adts_aac_read_packet
static int adts_aac_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: aacdec.c:168
AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:480
adts_aac_read_header
static int adts_aac_read_header(AVFormatContext *s)
Definition: aacdec.c:107
adts_aac_probe
static int adts_aac_probe(const AVProbeData *p)
Definition: aacdec.c:35
AV_CODEC_ID_AAC
@ AV_CODEC_ID_AAC
Definition: codec_id.h:448
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:94