Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
8edaf625
Commit
8edaf625
authored
Oct 28, 2015
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libopenh264enc: Count and warn about the number of skipped frames
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
9e14a992
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
libopenh264enc.c
libavcodec/libopenh264enc.c
+4
-0
No files found.
libavcodec/libopenh264enc.c
View file @
8edaf625
...
...
@@ -39,6 +39,7 @@ typedef struct SVCContext {
char
*
profile
;
int
max_nal_size
;
int
skip_frames
;
int
skipped
;
}
SVCContext
;
#define OPENH264_VER_AT_LEAST(maj, min) \
...
...
@@ -95,6 +96,8 @@ static av_cold int svc_encode_close(AVCodecContext *avctx)
if
(
s
->
encoder
)
WelsDestroySVCEncoder
(
s
->
encoder
);
if
(
s
->
skipped
>
0
)
av_log
(
avctx
,
AV_LOG_WARNING
,
"%d frames skipped
\n
"
,
s
->
skipped
);
return
0
;
}
...
...
@@ -252,6 +255,7 @@ static int svc_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
return
AVERROR_UNKNOWN
;
}
if
(
fbi
.
eFrameType
==
videoFrameTypeSkip
)
{
s
->
skipped
++
;
av_log
(
avctx
,
AV_LOG_DEBUG
,
"frame skipped
\n
"
);
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