FFmpeg
Data Structures | Macros | Functions | Variables
oggparseopus.c File Reference
#include <string.h>
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "internal.h"
#include "oggdec.h"

Go to the source code of this file.

Data Structures

struct  oggopus_private
 

Macros

#define OPUS_SEEK_PREROLL_MS   80
 
#define OPUS_HEAD_SIZE   19
 

Functions

static int opus_header (AVFormatContext *avf, int idx)
 
static int opus_duration (uint8_t *src, int size)
 
static int opus_packet (AVFormatContext *avf, int idx)
 

Variables

const struct ogg_codec ff_opus_codec
 

Macro Definition Documentation

◆ OPUS_SEEK_PREROLL_MS

#define OPUS_SEEK_PREROLL_MS   80

Definition at line 35 of file oggparseopus.c.

◆ OPUS_HEAD_SIZE

#define OPUS_HEAD_SIZE   19

Definition at line 36 of file oggparseopus.c.

Function Documentation

◆ opus_header()

static int opus_header ( AVFormatContext avf,
int  idx 
)
static

Definition at line 38 of file oggparseopus.c.

◆ opus_duration()

static int opus_duration ( uint8_t src,
int  size 
)
static

Definition at line 91 of file oggparseopus.c.

Referenced by opus_packet().

◆ opus_packet()

static int opus_packet ( AVFormatContext avf,
int  idx 
)
static

Definition at line 111 of file oggparseopus.c.

Variable Documentation

◆ ff_opus_codec

const struct ogg_codec ff_opus_codec
Initial value:
= {
.name = "Opus",
.magic = "OpusHead",
.magicsize = 8,
.header = opus_header,
.packet = opus_packet,
.nb_header = 1,
}

Definition at line 181 of file oggparseopus.c.

Referenced by ogg_replace_stream().

opus_packet
static int opus_packet(AVFormatContext *avf, int idx)
Definition: oggparseopus.c:111
opus_header
static int opus_header(AVFormatContext *avf, int idx)
Definition: oggparseopus.c:38