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
6ab312da
Commit
6ab312da
authored
Oct 11, 2006
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doxy
Originally committed as revision 6647 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
777f4649
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
parser.c
libavcodec/parser.c
+23
-2
No files found.
libavcodec/parser.c
View file @
6ab312da
...
@@ -71,8 +71,29 @@ AVCodecParserContext *av_parser_init(int codec_id)
...
@@ -71,8 +71,29 @@ AVCodecParserContext *av_parser_init(int codec_id)
return
s
;
return
s
;
}
}
/* NOTE: buf_size == 0 is used to signal EOF so that the last frame
/**
can be returned if necessary */
*
* @param buf input
* @param buf_size input length, to signal EOF, this should be 0 (so that the last frame can be output)
* @param pts input presentation timestamp
* @param dts input decoding timestamp
* @param poutbuf will contain a pointer to the first byte of the output frame
* @param poutbuf_size will contain the length of the output frame
* @return the number of bytes of the input bitstream used
*
* Example:
* @code
* while(in_len){
* len = av_parser_parse(myparser, AVCodecContext, &data, &size,
* in_data, in_len,
* pts, dts);
* in_data += len;
* in_len -= len;
*
* decode_frame(data, size);
* }
* @endcode
*/
int
av_parser_parse
(
AVCodecParserContext
*
s
,
int
av_parser_parse
(
AVCodecParserContext
*
s
,
AVCodecContext
*
avctx
,
AVCodecContext
*
avctx
,
uint8_t
**
poutbuf
,
int
*
poutbuf_size
,
uint8_t
**
poutbuf
,
int
*
poutbuf_size
,
...
...
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