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
88b32673
Commit
88b32673
authored
Oct 18, 2014
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: copy stream-level side data when streamcopying
parent
c63418e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
avconv.c
avconv.c
+20
-0
No files found.
avconv.c
View file @
88b32673
...
@@ -1753,6 +1753,26 @@ static int transcode_init(void)
...
@@ -1753,6 +1753,26 @@ static int transcode_init(void)
}
else
}
else
enc_ctx
->
time_base
=
ist
->
st
->
time_base
;
enc_ctx
->
time_base
=
ist
->
st
->
time_base
;
if
(
ist
->
st
->
nb_side_data
)
{
ost
->
st
->
side_data
=
av_realloc_array
(
NULL
,
ist
->
st
->
nb_side_data
,
sizeof
(
*
ist
->
st
->
side_data
));
if
(
!
ost
->
st
->
side_data
)
return
AVERROR
(
ENOMEM
);
for
(
j
=
0
;
j
<
ist
->
st
->
nb_side_data
;
j
++
)
{
const
AVPacketSideData
*
sd_src
=
&
ist
->
st
->
side_data
[
j
];
AVPacketSideData
*
sd_dst
=
&
ost
->
st
->
side_data
[
j
];
sd_dst
->
data
=
av_malloc
(
sd_src
->
size
);
if
(
!
sd_dst
->
data
)
return
AVERROR
(
ENOMEM
);
memcpy
(
sd_dst
->
data
,
sd_src
->
data
,
sd_src
->
size
);
sd_dst
->
size
=
sd_src
->
size
;
sd_dst
->
type
=
sd_src
->
type
;
ost
->
st
->
nb_side_data
++
;
}
}
ost
->
parser
=
av_parser_init
(
enc_ctx
->
codec_id
);
ost
->
parser
=
av_parser_init
(
enc_ctx
->
codec_id
);
switch
(
enc_ctx
->
codec_type
)
{
switch
(
enc_ctx
->
codec_type
)
{
...
...
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