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
461b5bf4
Commit
461b5bf4
authored
Dec 08, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/avcodec: extend/clarify/fix documentation for avcodec_fill_audio_frame()
parent
ad47ac20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
avcodec.h
libavcodec/avcodec.h
+8
-3
No files found.
libavcodec/avcodec.h
View file @
461b5bf4
...
@@ -4774,7 +4774,12 @@ int avcodec_default_execute2(AVCodecContext *c, int (*func)(AVCodecContext *c2,
...
@@ -4774,7 +4774,12 @@ int avcodec_default_execute2(AVCodecContext *c, int (*func)(AVCodecContext *c2,
//FIXME func typedef
//FIXME func typedef
/**
/**
* Fill audio frame data and linesize.
* Fill AVFrame audio data and linesize pointers.
*
* The buffer buf must be a preallocated buffer with a size big enough
* to contain the specified samples amount. The filled AVFrame data
* pointers will point to this buffer.
*
* AVFrame extended_data channel pointers are allocated if necessary for
* AVFrame extended_data channel pointers are allocated if necessary for
* planar audio.
* planar audio.
*
*
...
@@ -4788,8 +4793,8 @@ int avcodec_default_execute2(AVCodecContext *c, int (*func)(AVCodecContext *c2,
...
@@ -4788,8 +4793,8 @@ int avcodec_default_execute2(AVCodecContext *c, int (*func)(AVCodecContext *c2,
* @param buf_size size of buffer
* @param buf_size size of buffer
* @param align plane size sample alignment (0 = default)
* @param align plane size sample alignment (0 = default)
* @return >=0 on success, negative error code on failure
* @return >=0 on success, negative error code on failure
* @todo return the size
of the allocated frame size in case of
* @todo return the size
in bytes required to store the samples in
* success, at the next libavutil bump
*
case of
success, at the next libavutil bump
*/
*/
int
avcodec_fill_audio_frame
(
AVFrame
*
frame
,
int
nb_channels
,
int
avcodec_fill_audio_frame
(
AVFrame
*
frame
,
int
nb_channels
,
enum
AVSampleFormat
sample_fmt
,
const
uint8_t
*
buf
,
enum
AVSampleFormat
sample_fmt
,
const
uint8_t
*
buf
,
...
...
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