FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
opus_parser.c File Reference

Opus parser. More...

#include "avcodec.h"
#include "opus.h"

Go to the source code of this file.

Data Structures

struct  OpusParseContext
 

Functions

static int opus_parse (AVCodecParserContext *ctx, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
 

Variables

AVCodecParser ff_opus_parser
 

Detailed Description

Opus parser.

Determines the duration for each packet.

Definition in file opus_parser.c.

Function Documentation

static int opus_parse ( AVCodecParserContext ctx,
AVCodecContext avctx,
const uint8_t **  poutbuf,
int *  poutbuf_size,
const uint8_t buf,
int  buf_size 
)
static

Definition at line 37 of file opus_parser.c.

Variable Documentation

AVCodecParser ff_opus_parser
Initial value:
= {
.codec_ids = { AV_CODEC_ID_OPUS },
.priv_data_size = sizeof(OpusParseContext),
.parser_parse = opus_parse,
}

Definition at line 71 of file opus_parser.c.