MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / parse

Function parse

libavcodec/vp3_parser.c:23–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21#include "parser.h"
22
23static int parse(AVCodecParserContext *s,
24 AVCodecContext *avctx,
25 const uint8_t **poutbuf, int *poutbuf_size,
26 const uint8_t *buf, int buf_size)
27{
28 if(avctx->codec_id == CODEC_ID_THEORA)
29 s->pict_type= (buf[0]&0x40) ? FF_P_TYPE : FF_I_TYPE;
30 else
31 s->pict_type= (buf[0]&0x80) ? FF_P_TYPE : FF_I_TYPE;
32
33 *poutbuf = buf;
34 *poutbuf_size = buf_size;
35 return buf_size;
36}
37
38AVCodecParser vp3_parser = {
39 { CODEC_ID_THEORA, CODEC_ID_VP3,

Callers 2

mov_read_udta_stringFunction · 0.85
mov_read_defaultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected