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
77cc0d5b
Commit
77cc0d5b
authored
May 05, 2015
by
anatolschwarz
Committed by
Michael Niedermayer
May 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: Support preserving the source key frame timings
Added option "source" to force_key_frames
parent
3a91a07f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
ffmpeg.c
ffmpeg.c
+8
-1
No files found.
ffmpeg.c
View file @
77cc0d5b
...
...
@@ -1104,6 +1104,10 @@ static void do_video_out(AVFormatContext *s,
}
ost
->
forced_keyframes_expr_const_values
[
FKF_N
]
+=
1
;
}
else
if
(
ost
->
forced_keyframes
&&
!
strncmp
(
ost
->
forced_keyframes
,
"source"
,
6
)
&&
in_picture
->
key_frame
==
1
)
{
forced_keyframe
=
1
;
}
if
(
forced_keyframe
)
{
...
...
@@ -2942,7 +2946,10 @@ static int transcode_init(void)
ost
->
forced_keyframes_expr_const_values
[
FKF_N_FORCED
]
=
0
;
ost
->
forced_keyframes_expr_const_values
[
FKF_PREV_FORCED_N
]
=
NAN
;
ost
->
forced_keyframes_expr_const_values
[
FKF_PREV_FORCED_T
]
=
NAN
;
}
else
{
// Don't parse the 'forced_keyframes' in case of 'keep-source-keyframes',
// parse it only for static kf timings
}
else
if
(
strncmp
(
ost
->
forced_keyframes
,
"source"
,
6
))
{
parse_forced_key_frames
(
ost
->
forced_keyframes
,
ost
,
ost
->
enc_ctx
);
}
}
...
...
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