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
dd77dad4
Commit
dd77dad4
authored
Mar 30, 2016
by
Derek Buitenhuis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
codecpar: Add video delay field
Signed-off-by:
Derek Buitenhuis
<
derek.buitenhuis@gmail.com
>
parent
5b4f8af2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
avcodec.h
libavcodec/avcodec.h
+5
-0
utils.c
libavcodec/utils.c
+2
-0
No files found.
libavcodec/avcodec.h
View file @
dd77dad4
...
...
@@ -3868,6 +3868,11 @@ typedef struct AVCodecParameters {
enum
AVColorSpace
color_space
;
enum
AVChromaLocation
chroma_location
;
/**
* Video only. Number of delayed frames.
*/
int
video_delay
;
/**
* Audio only. The channel layout bitmask. May be 0 if the channel layout is
* unknown or unspecified, otherwise the number of bits set must be equal to
...
...
libavcodec/utils.c
View file @
dd77dad4
...
...
@@ -3776,6 +3776,7 @@ int avcodec_parameters_from_context(AVCodecParameters *par,
par
->
color_space
=
codec
->
colorspace
;
par
->
chroma_location
=
codec
->
chroma_sample_location
;
par
->
sample_aspect_ratio
=
codec
->
sample_aspect_ratio
;
par
->
video_delay
=
codec
->
has_b_frames
;
break
;
case
AVMEDIA_TYPE_AUDIO
:
par
->
format
=
codec
->
sample_fmt
;
...
...
@@ -3824,6 +3825,7 @@ int avcodec_parameters_to_context(AVCodecContext *codec,
codec
->
colorspace
=
par
->
color_space
;
codec
->
chroma_sample_location
=
par
->
chroma_location
;
codec
->
sample_aspect_ratio
=
par
->
sample_aspect_ratio
;
codec
->
has_b_frames
=
par
->
video_delay
;
break
;
case
AVMEDIA_TYPE_AUDIO
:
codec
->
sample_fmt
=
par
->
format
;
...
...
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