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
fdb86eb1
Commit
fdb86eb1
authored
Jan 17, 2005
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trying to fix the -ss bugs
Originally committed as revision 3843 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
d06c75a8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
ffmpeg.c
ffmpeg.c
+3
-1
No files found.
ffmpeg.c
View file @
fdb86eb1
...
...
@@ -1756,6 +1756,8 @@ static int av_encode(AVFormatContext **output_files,
ist
->
next_pts
=
ist
->
st
->
start_time
;
if
(
ist
->
next_pts
==
AV_NOPTS_VALUE
)
ist
->
next_pts
=
0
;
if
(
input_files_ts_offset
[
ist
->
file_index
])
ist
->
next_pts
=
AV_NOPTS_VALUE
;
ist
->
is_start
=
1
;
}
...
...
@@ -1897,7 +1899,7 @@ static int av_encode(AVFormatContext **output_files,
goto
discard_packet
;
// fprintf(stderr, "next:%lld dts:%lld off:%lld %d\n", ist->next_pts, pkt.dts, input_files_ts_offset[ist->file_index], ist->st->codec.codec_type);
if
(
pkt
.
dts
!=
AV_NOPTS_VALUE
)
{
if
(
pkt
.
dts
!=
AV_NOPTS_VALUE
&&
ist
->
next_pts
!=
AV_NOPTS_VALUE
)
{
int64_t
delta
=
pkt
.
dts
-
ist
->
next_pts
;
if
(
ABS
(
delta
)
>
10LL
*
AV_TIME_BASE
&&
!
copy_ts
){
input_files_ts_offset
[
ist
->
file_index
]
-=
delta
;
...
...
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