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
14d194d5
Commit
14d194d5
authored
Jul 07, 2007
by
Måns Rullgård
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused functions
Originally committed as revision 9520 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
ceb48b46
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
43 deletions
+0
-43
utils.c
libavformat/utils.c
+0
-43
No files found.
libavformat/utils.c
View file @
14d194d5
...
...
@@ -1006,49 +1006,6 @@ int av_add_index_entry(AVStream *st,
return
index
;
}
/**
* build an index for raw streams using a parser.
*/
static
void
av_build_index_raw
(
AVFormatContext
*
s
)
{
AVPacket
pkt1
,
*
pkt
=
&
pkt1
;
int
ret
;
AVStream
*
st
;
st
=
s
->
streams
[
0
];
av_read_frame_flush
(
s
);
url_fseek
(
&
s
->
pb
,
s
->
data_offset
,
SEEK_SET
);
for
(;;)
{
ret
=
av_read_frame
(
s
,
pkt
);
if
(
ret
<
0
)
break
;
if
(
pkt
->
stream_index
==
0
&&
st
->
parser
&&
(
pkt
->
flags
&
PKT_FLAG_KEY
))
{
av_add_index_entry
(
st
,
st
->
parser
->
frame_offset
,
pkt
->
dts
,
0
,
0
,
AVINDEX_KEYFRAME
);
}
av_free_packet
(
pkt
);
}
}
/**
* Returns TRUE if we deal with a raw stream.
*
* Raw codec data and parsing needed.
*/
static
int
is_raw_stream
(
AVFormatContext
*
s
)
{
AVStream
*
st
;
if
(
s
->
nb_streams
!=
1
)
return
0
;
st
=
s
->
streams
[
0
];
if
(
!
st
->
need_parsing
)
return
0
;
return
1
;
}
int
av_index_search_timestamp
(
AVStream
*
st
,
int64_t
wanted_timestamp
,
int
flags
)
{
...
...
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