Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
34e85cb3
Commit
34e85cb3
authored
Sep 06, 2015
by
Hendrik Leppkes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/vorbis: remove avpriv vorbis parser cruft
It was replaced by a public API
parent
2cad7eeb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
61 deletions
+0
-61
vorbis_parser.c
libavcodec/vorbis_parser.c
+0
-21
vorbis_parser_internal.h
libavcodec/vorbis_parser_internal.h
+0
-40
No files found.
libavcodec/vorbis_parser.c
View file @
34e85cb3
...
...
@@ -296,27 +296,6 @@ AVVorbisParseContext *av_vorbis_parse_init(const uint8_t *extradata,
return
s
;
}
#if LIBAVCODEC_VERSION_MAJOR < 57
int
avpriv_vorbis_parse_extradata
(
AVCodecContext
*
avctx
,
AVVorbisParseContext
*
s
)
{
return
vorbis_parse_init
(
s
,
avctx
->
extradata
,
avctx
->
extradata_size
);
}
void
avpriv_vorbis_parse_reset
(
AVVorbisParseContext
*
s
)
{
av_vorbis_parse_reset
(
s
);
}
int
avpriv_vorbis_parse_frame
(
AVVorbisParseContext
*
s
,
const
uint8_t
*
buf
,
int
buf_size
)
{
return
av_vorbis_parse_frame
(
s
,
buf
,
buf_size
);
}
int
avpriv_vorbis_parse_frame_flags
(
AVVorbisParseContext
*
s
,
const
uint8_t
*
buf
,
int
buf_size
,
int
*
flags
)
{
return
av_vorbis_parse_frame_flags
(
s
,
buf
,
buf_size
,
flags
);
}
#endif
#if CONFIG_VORBIS_PARSER
typedef
struct
VorbisParseContext
{
...
...
libavcodec/vorbis_parser_internal.h
View file @
34e85cb3
...
...
@@ -43,44 +43,4 @@ struct AVVorbisParseContext {
int
prev_mask
;
///< bitmask used to get the previous mode flag in each packet
};
#if LIBAVCODEC_VERSION_MAJOR < 57
/**
* Initialize the Vorbis parser using headers in the extradata.
*
* @param avctx codec context
* @param s Vorbis parser context
*/
int
avpriv_vorbis_parse_extradata
(
AVCodecContext
*
avctx
,
AVVorbisParseContext
*
s
);
/**
* Get the duration for a Vorbis packet.
*
* avpriv_vorbis_parse_extradata() must have been successfully called prior to
* this in order for a correct duration to be returned. If @p flags is @c NULL,
* special frames are considered invalid.
*
* @param s Vorbis parser context
* @param buf buffer containing a Vorbis frame
* @param buf_size size of the buffer
* @param flags flags for special frames
*/
int
avpriv_vorbis_parse_frame_flags
(
AVVorbisParseContext
*
s
,
const
uint8_t
*
buf
,
int
buf_size
,
int
*
flags
);
/**
* Get the duration for a Vorbis packet.
*
* avpriv_vorbis_parse_extradata() must have been successfully called prior to
* this in order for a correct duration to be returned.
*
* @param s Vorbis parser context
* @param buf buffer containing a Vorbis frame
* @param buf_size size of the buffer
*/
int
avpriv_vorbis_parse_frame
(
AVVorbisParseContext
*
s
,
const
uint8_t
*
buf
,
int
buf_size
);
void
avpriv_vorbis_parse_reset
(
AVVorbisParseContext
*
s
);
#endif
#endif
/* AVCODEC_VORBIS_PARSER_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment