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
9cb9e39c
Commit
9cb9e39c
authored
Oct 01, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avienc: Add a limit on the number of skiped frames muxed in a row.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
8447703c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
avienc.c
libavformat/avienc.c
+5
-0
No files found.
libavformat/avienc.c
View file @
9cb9e39c
...
@@ -523,6 +523,11 @@ static int avi_write_packet(AVFormatContext *s, AVPacket *pkt)
...
@@ -523,6 +523,11 @@ static int avi_write_packet(AVFormatContext *s, AVPacket *pkt)
while
(
enc
->
block_align
==
0
&&
pkt
->
dts
!=
AV_NOPTS_VALUE
&&
pkt
->
dts
>
avist
->
packet_count
){
while
(
enc
->
block_align
==
0
&&
pkt
->
dts
!=
AV_NOPTS_VALUE
&&
pkt
->
dts
>
avist
->
packet_count
){
AVPacket
empty_packet
;
AVPacket
empty_packet
;
if
(
pkt
->
dts
-
avist
->
packet_count
>
60000
){
av_log
(
s
,
AV_LOG_ERROR
,
"Too large number of skiped frames %Ld
\n
"
,
pkt
->
dts
-
avist
->
packet_count
);
return
AVERROR
(
EINVAL
);
}
av_init_packet
(
&
empty_packet
);
av_init_packet
(
&
empty_packet
);
empty_packet
.
size
=
0
;
empty_packet
.
size
=
0
;
empty_packet
.
data
=
NULL
;
empty_packet
.
data
=
NULL
;
...
...
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