FFmpeg  4.0
Data Structures | Functions | Variables
g729_parser.c File Reference

G.729 audio parser. More...

#include "libavutil/avassert.h"
#include "parser.h"
#include "g729.h"

Go to the source code of this file.

Data Structures

struct  G729ParseContext
 

Functions

static int g729_parse (AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
 

Variables

AVCodecParser ff_g729_parser
 

Detailed Description

G.729 audio parser.

Splits packets into individual blocks.

Definition in file g729_parser.c.

Function Documentation

◆ g729_parse()

static int g729_parse ( AVCodecParserContext s1,
AVCodecContext avctx,
const uint8_t **  poutbuf,
int poutbuf_size,
const uint8_t buf,
int  buf_size 
)
static

Definition at line 39 of file g729_parser.c.

Variable Documentation

◆ ff_g729_parser

AVCodecParser ff_g729_parser
Initial value:
= {
.codec_ids = { AV_CODEC_ID_G729 },
.priv_data_size = sizeof(G729ParseContext),
.parser_parse = g729_parse,
.parser_close = ff_parse_close,
}
void ff_parse_close(AVCodecParserContext *s)
Definition: parser.c:397
static int g729_parse(AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
Definition: g729_parser.c:39

Definition at line 77 of file g729_parser.c.