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
6d1aba6a
Commit
6d1aba6a
authored
May 29, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/nutenc: limit index table size if no index is going to be written
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
82beb46e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
nutenc.c
libavformat/nutenc.c
+8
-1
No files found.
libavformat/nutenc.c
View file @
6d1aba6a
...
...
@@ -1002,8 +1002,15 @@ static int nut_write_packet(AVFormatContext *s, AVPacket *pkt)
AV_ROUND_DOWN
);
int
index
=
av_index_search_timestamp
(
st
,
dts_tb
,
AVSEEK_FLAG_BACKWARD
);
if
(
index
>=
0
)
if
(
index
>=
0
)
{
sp_pos
=
FFMIN
(
sp_pos
,
st
->
index_entries
[
index
].
pos
);
if
(
!
nut
->
write_index
&&
2
*
index
>
st
->
nb_index_entries
)
{
memmove
(
st
->
index_entries
,
st
->
index_entries
+
index
,
sizeof
(
*
st
->
index_entries
)
*
(
st
->
nb_index_entries
-
index
));
st
->
nb_index_entries
-=
index
;
}
}
}
nut
->
last_syncpoint_pos
=
avio_tell
(
bc
);
...
...
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