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
70fa2486
Commit
70fa2486
authored
Apr 25, 2007
by
David Conrad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support for seeking in TTA files.
Originally committed as revision 8820 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
2bd8416e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
tta.c
libavformat/tta.c
+15
-0
No files found.
libavformat/tta.c
View file @
70fa2486
...
...
@@ -120,6 +120,20 @@ static int tta_read_packet(AVFormatContext *s, AVPacket *pkt)
return
av_get_packet
(
&
s
->
pb
,
pkt
,
size
);
}
static
int
tta_read_seek
(
AVFormatContext
*
s
,
int
stream_index
,
int64_t
timestamp
,
int
flags
)
{
TTAContext
*
c
=
s
->
priv_data
;
AVStream
*
st
=
s
->
streams
[
stream_index
];
int
index
=
av_index_search_timestamp
(
st
,
timestamp
,
flags
);
if
(
index
<
0
)
return
-
1
;
c
->
currentframe
=
index
;
url_fseek
(
&
s
->
pb
,
st
->
index_entries
[
index
].
pos
,
SEEK_SET
);
return
0
;
}
AVInputFormat
tta_demuxer
=
{
"tta"
,
"true-audio"
,
...
...
@@ -128,5 +142,6 @@ AVInputFormat tta_demuxer = {
tta_read_header
,
tta_read_packet
,
NULL
,
tta_read_seek
,
.
extensions
=
"tta"
,
};
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