FFmpeg  4.0
Macros | Functions | Variables
oggparseflac.c File Reference
#include <stdlib.h>
#include "libavcodec/get_bits.h"
#include "libavcodec/flac.h"
#include "avformat.h"
#include "internal.h"
#include "oggdec.h"

Go to the source code of this file.

Macros

#define OGG_FLAC_METADATA_TYPE_STREAMINFO   0x7F
 

Functions

static int flac_header (AVFormatContext *s, int idx)
 
static int old_flac_header (AVFormatContext *s, int idx)
 

Variables

const struct ogg_codec ff_flac_codec
 
const struct ogg_codec ff_old_flac_codec
 

Macro Definition Documentation

◆ OGG_FLAC_METADATA_TYPE_STREAMINFO

#define OGG_FLAC_METADATA_TYPE_STREAMINFO   0x7F

Definition at line 28 of file oggparseflac.c.

Referenced by flac_header().

Function Documentation

◆ flac_header()

static int flac_header ( AVFormatContext s,
int  idx 
)
static

Definition at line 31 of file oggparseflac.c.

◆ old_flac_header()

static int old_flac_header ( AVFormatContext s,
int  idx 
)
static

Definition at line 81 of file oggparseflac.c.

Variable Documentation

◆ ff_flac_codec

const struct ogg_codec ff_flac_codec
Initial value:
= {
.magic = "\177FLAC",
.magicsize = 5,
.header = flac_header,
.nb_header = 2,
}
static int flac_header(AVFormatContext *s, int idx)
Definition: oggparseflac.c:31

Definition at line 128 of file oggparseflac.c.

◆ ff_old_flac_codec

const struct ogg_codec ff_old_flac_codec
Initial value:
= {
.magic = "fLaC",
.magicsize = 4,
.header = old_flac_header,
.nb_header = 0,
}
static int old_flac_header(AVFormatContext *s, int idx)
Definition: oggparseflac.c:81

Definition at line 135 of file oggparseflac.c.