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
3b2fbe67
Commit
3b2fbe67
authored
Apr 05, 2014
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: properly handle subtitle_header in avcodec_copy_context()
parent
efc7df6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
options.c
libavcodec/options.c
+3
-0
No files found.
libavcodec/options.c
View file @
3b2fbe67
...
...
@@ -162,6 +162,7 @@ int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src)
dest
->
intra_matrix
=
NULL
;
dest
->
inter_matrix
=
NULL
;
dest
->
rc_override
=
NULL
;
dest
->
subtitle_header
=
NULL
;
if
(
src
->
rc_eq
)
{
dest
->
rc_eq
=
av_strdup
(
src
->
rc_eq
);
if
(
!
dest
->
rc_eq
)
...
...
@@ -182,6 +183,8 @@ int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src)
alloc_and_copy_or_fail
(
intra_matrix
,
64
*
sizeof
(
int16_t
),
0
);
alloc_and_copy_or_fail
(
inter_matrix
,
64
*
sizeof
(
int16_t
),
0
);
alloc_and_copy_or_fail
(
rc_override
,
src
->
rc_override_count
*
sizeof
(
*
src
->
rc_override
),
0
);
alloc_and_copy_or_fail
(
subtitle_header
,
src
->
subtitle_header_size
,
0
);
dest
->
subtitle_header_size
=
src
->
subtitle_header_size
;
#undef alloc_and_copy_or_fail
return
0
;
...
...
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