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

Cook audio parser. More...

#include <stdint.h>
#include "libavutil/intreadwrite.h"
#include "parser.h"

Go to the source code of this file.

Data Structures

struct  CookParseContext
 

Functions

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

Variables

AVCodecParser ff_cook_parser
 

Detailed Description

Cook audio parser.

Determines subpacket duration from extradata.

Definition in file cook_parser.c.

Function Documentation

◆ cook_parse()

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

Definition at line 37 of file cook_parser.c.

Variable Documentation

◆ ff_cook_parser

AVCodecParser ff_cook_parser
Initial value:
= {
.codec_ids = { AV_CODEC_ID_COOK },
.priv_data_size = sizeof(CookParseContext),
.parser_parse = cook_parse,
}
static int cook_parse(AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
Definition: cook_parser.c:37

Definition at line 56 of file cook_parser.c.