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
5b4f8af2
Commit
5b4f8af2
authored
Mar 05, 2016
by
Hendrik Leppkes
Committed by
Derek Buitenhuis
Mar 31, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add frame_size to AVCodecParameters
Signed-off-by:
Derek Buitenhuis
<
derek.buitenhuis@gmail.com
>
parent
3fafde6c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
avcodec.h
libavcodec/avcodec.h
+4
-0
utils.c
libavcodec/utils.c
+2
-0
No files found.
libavcodec/avcodec.h
View file @
5b4f8af2
...
...
@@ -3889,6 +3889,10 @@ typedef struct AVCodecParameters {
* Corresponds to nBlockAlign in WAVEFORMATEX.
*/
int
block_align
;
/**
* Audio only. Audio frame size, if known. Required by some formats to be static.
*/
int
frame_size
;
/**
* Audio only. The amount of padding (in samples) inserted by the encoder at
...
...
libavcodec/utils.c
View file @
5b4f8af2
...
...
@@ -3783,6 +3783,7 @@ int avcodec_parameters_from_context(AVCodecParameters *par,
par
->
channels
=
codec
->
channels
;
par
->
sample_rate
=
codec
->
sample_rate
;
par
->
block_align
=
codec
->
block_align
;
par
->
frame_size
=
codec
->
frame_size
;
par
->
initial_padding
=
codec
->
initial_padding
;
par
->
seek_preroll
=
codec
->
seek_preroll
;
break
;
...
...
@@ -3830,6 +3831,7 @@ int avcodec_parameters_to_context(AVCodecContext *codec,
codec
->
channels
=
par
->
channels
;
codec
->
sample_rate
=
par
->
sample_rate
;
codec
->
block_align
=
par
->
block_align
;
codec
->
frame_size
=
par
->
frame_size
;
codec
->
initial_padding
=
par
->
initial_padding
;
codec
->
seek_preroll
=
par
->
seek_preroll
;
break
;
...
...
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