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
3fafde6c
Commit
3fafde6c
authored
Mar 04, 2016
by
James Almer
Committed by
Derek Buitenhuis
Mar 31, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: Add seek_preroll to AVCodecParameters
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
e6053b3b
Show 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 @
3fafde6c
...
@@ -3904,6 +3904,10 @@ typedef struct AVCodecParameters {
...
@@ -3904,6 +3904,10 @@ typedef struct AVCodecParameters {
* audio without any trailing padding.
* audio without any trailing padding.
*/
*/
int
trailing_padding
;
int
trailing_padding
;
/**
* Audio only. Number of samples to skip after a discontinuity.
*/
int
seek_preroll
;
}
AVCodecParameters
;
}
AVCodecParameters
;
/**
/**
...
...
libavcodec/utils.c
View file @
3fafde6c
...
@@ -3784,6 +3784,7 @@ int avcodec_parameters_from_context(AVCodecParameters *par,
...
@@ -3784,6 +3784,7 @@ int avcodec_parameters_from_context(AVCodecParameters *par,
par
->
sample_rate
=
codec
->
sample_rate
;
par
->
sample_rate
=
codec
->
sample_rate
;
par
->
block_align
=
codec
->
block_align
;
par
->
block_align
=
codec
->
block_align
;
par
->
initial_padding
=
codec
->
initial_padding
;
par
->
initial_padding
=
codec
->
initial_padding
;
par
->
seek_preroll
=
codec
->
seek_preroll
;
break
;
break
;
}
}
...
@@ -3830,6 +3831,7 @@ int avcodec_parameters_to_context(AVCodecContext *codec,
...
@@ -3830,6 +3831,7 @@ int avcodec_parameters_to_context(AVCodecContext *codec,
codec
->
sample_rate
=
par
->
sample_rate
;
codec
->
sample_rate
=
par
->
sample_rate
;
codec
->
block_align
=
par
->
block_align
;
codec
->
block_align
=
par
->
block_align
;
codec
->
initial_padding
=
par
->
initial_padding
;
codec
->
initial_padding
=
par
->
initial_padding
;
codec
->
seek_preroll
=
par
->
seek_preroll
;
break
;
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