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
be8d98c1
Commit
be8d98c1
authored
Mar 28, 2016
by
Clément Bœsch
Committed by
Derek Buitenhuis
Mar 31, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/utils: transfer width/height for subs in codecpar
Signed-off-by:
Derek Buitenhuis
<
derek.buitenhuis@gmail.com
>
parent
dd77dad4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
utils.c
libavcodec/utils.c
+8
-0
No files found.
libavcodec/utils.c
View file @
be8d98c1
...
...
@@ -3788,6 +3788,10 @@ int avcodec_parameters_from_context(AVCodecParameters *par,
par
->
initial_padding
=
codec
->
initial_padding
;
par
->
seek_preroll
=
codec
->
seek_preroll
;
break
;
case
AVMEDIA_TYPE_SUBTITLE
:
par
->
width
=
codec
->
width
;
par
->
height
=
codec
->
height
;
break
;
}
if
(
codec
->
extradata
)
{
...
...
@@ -3837,6 +3841,10 @@ int avcodec_parameters_to_context(AVCodecContext *codec,
codec
->
initial_padding
=
par
->
initial_padding
;
codec
->
seek_preroll
=
par
->
seek_preroll
;
break
;
case
AVMEDIA_TYPE_SUBTITLE
:
codec
->
width
=
par
->
width
;
codec
->
height
=
par
->
height
;
break
;
}
if
(
par
->
extradata
)
{
...
...
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