diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-11-06 11:00:42 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-11-06 11:06:19 +0100 |
commit | 5f7887ca8d056d2debdd2c3b205ada7305d9ac07 (patch) | |
tree | ceee289debe80e040b5d329484408495d488913f /libavcodec/vorbis_parser.c | |
parent | a0617025dd264ba1db6a3dccfaed942ba0dd2bbe (diff) | |
parent | 6896f95b2483e52e717e2c75a4fd24fcb0e14b67 (diff) | |
download | ffmpeg-5f7887ca8d056d2debdd2c3b205ada7305d9ac07.tar.gz |
Merge commit '6896f95b2483e52e717e2c75a4fd24fcb0e14b67'
* commit '6896f95b2483e52e717e2c75a4fd24fcb0e14b67':
vorbis_parser: add an AV prefix to VorbisParseContext
Conflicts:
libavcodec/vorbis_parser.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vorbis_parser.c')
-rw-r--r-- | libavcodec/vorbis_parser.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavcodec/vorbis_parser.c b/libavcodec/vorbis_parser.c index d75fb962d4..30843294cf 100644 --- a/libavcodec/vorbis_parser.c +++ b/libavcodec/vorbis_parser.c @@ -38,7 +38,7 @@ static const AVClass vorbis_parser_class = { .version = LIBAVUTIL_VERSION_INT, }; -static int parse_id_header(VorbisParseContext *s, +static int parse_id_header(AVVorbisParseContext *s, const uint8_t *buf, int buf_size) { /* Id header should be 30 bytes */ @@ -70,7 +70,7 @@ static int parse_id_header(VorbisParseContext *s, return 0; } -static int parse_setup_header(VorbisParseContext *s, +static int parse_setup_header(AVVorbisParseContext *s, const uint8_t *buf, int buf_size) { GetBitContext gb, gb0; @@ -181,7 +181,7 @@ bad_header: return ret; } -int avpriv_vorbis_parse_extradata(AVCodecContext *avctx, VorbisParseContext *s) +int avpriv_vorbis_parse_extradata(AVCodecContext *avctx, AVVorbisParseContext *s) { uint8_t *header_start[3]; int header_len[3]; @@ -209,7 +209,7 @@ int avpriv_vorbis_parse_extradata(AVCodecContext *avctx, VorbisParseContext *s) return 0; } -int avpriv_vorbis_parse_frame_flags(VorbisParseContext *s, const uint8_t *buf, +int avpriv_vorbis_parse_frame_flags(AVVorbisParseContext *s, const uint8_t *buf, int buf_size, int *flags) { int duration = 0; @@ -258,13 +258,13 @@ bad_packet: return duration; } -int avpriv_vorbis_parse_frame(VorbisParseContext *s, const uint8_t *buf, +int avpriv_vorbis_parse_frame(AVVorbisParseContext *s, const uint8_t *buf, int buf_size) { return avpriv_vorbis_parse_frame_flags(s, buf, buf_size, NULL); } -void avpriv_vorbis_parse_reset(VorbisParseContext *s) +void avpriv_vorbis_parse_reset(AVVorbisParseContext *s) { if (s->valid_extradata) s->previous_blocksize = s->blocksize[0]; @@ -275,7 +275,7 @@ static int vorbis_parse(AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) { - VorbisParseContext *s = s1->priv_data; + AVVorbisParseContext *s = s1->priv_data; int duration; if (!s->extradata_parsed && avctx->extradata && avctx->extradata_size) @@ -295,7 +295,7 @@ end: AVCodecParser ff_vorbis_parser = { .codec_ids = { AV_CODEC_ID_VORBIS }, - .priv_data_size = sizeof(VorbisParseContext), + .priv_data_size = sizeof(AVVorbisParseContext), .parser_parse = vorbis_parse, }; #endif /* CONFIG_VORBIS_PARSER */ |