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
460d3040
Commit
460d3040
authored
Mar 27, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat: change some seeking related assert to av_asserts
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
0d6e5a17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
utils.c
libavformat/utils.c
+3
-3
No files found.
libavformat/utils.c
View file @
460d3040
...
...
@@ -1738,7 +1738,7 @@ int ff_add_index_entry(AVIndexEntry **index_entries,
if
(
index
<
0
){
index
=
(
*
nb_index_entries
)
++
;
ie
=
&
entries
[
index
];
a
ssert
(
index
==
0
||
ie
[
-
1
].
timestamp
<
timestamp
);
a
v_assert0
(
index
==
0
||
ie
[
-
1
].
timestamp
<
timestamp
);
}
else
{
ie
=
&
entries
[
index
];
if
(
ie
->
timestamp
!=
timestamp
){
...
...
@@ -1854,7 +1854,7 @@ int ff_seek_frame_binary(AVFormatContext *s, int stream_index, int64_t target_ts
}
index
=
av_index_search_timestamp
(
st
,
target_ts
,
flags
&
~
AVSEEK_FLAG_BACKWARD
);
a
ssert
(
index
<
st
->
nb_index_entries
);
a
v_assert0
(
index
<
st
->
nb_index_entries
);
if
(
index
>=
0
){
e
=
&
st
->
index_entries
[
index
];
assert
(
e
->
timestamp
>=
target_ts
);
...
...
@@ -2037,7 +2037,7 @@ static int seek_frame_generic(AVFormatContext *s,
int
nonkey
=
0
;
if
(
st
->
nb_index_entries
){
a
ssert
(
st
->
index_entries
);
a
v_assert0
(
st
->
index_entries
);
ie
=
&
st
->
index_entries
[
st
->
nb_index_entries
-
1
];
if
((
ret
=
avio_seek
(
s
->
pb
,
ie
->
pos
,
SEEK_SET
))
<
0
)
return
ret
;
...
...
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