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
5a4935c0
Commit
5a4935c0
authored
Nov 03, 2016
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: Warn if thousands of frames are duplicated.
Fixes ticket #5193.
parent
b4e9252a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
ffmpeg.c
ffmpeg.c
+5
-0
No files found.
ffmpeg.c
View file @
5a4935c0
...
...
@@ -126,6 +126,7 @@ static int64_t getmaxrss(void);
static
int
run_as_daemon
=
0
;
static
int
nb_frames_dup
=
0
;
static
unsigned
dup_warning
=
1000
;
static
int
nb_frames_drop
=
0
;
static
int64_t
decode_error_stat
[
2
];
...
...
@@ -1136,6 +1137,10 @@ static void do_video_out(OutputFile *of,
}
nb_frames_dup
+=
nb_frames
-
(
nb0_frames
&&
ost
->
last_dropped
)
-
(
nb_frames
>
nb0_frames
);
av_log
(
NULL
,
AV_LOG_VERBOSE
,
"*** %d dup!
\n
"
,
nb_frames
-
1
);
if
(
nb_frames_dup
>
dup_warning
)
{
av_log
(
NULL
,
AV_LOG_WARNING
,
"More than %d frames duplicated
\n
"
,
dup_warning
);
dup_warning
*=
10
;
}
}
ost
->
last_dropped
=
nb_frames
==
nb0_frames
&&
next_picture
;
...
...
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