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
88f8805f
Commit
88f8805f
authored
Mar 21, 2011
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow demuxing of APE files with metadata tags.
Fixes ticket 11.
parent
d4a50a21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ape.c
libavformat/ape.c
+3
-3
No files found.
libavformat/ape.c
View file @
88f8805f
...
...
@@ -159,8 +159,8 @@ static int ape_read_header(AVFormatContext * s, AVFormatParameters * ap)
int
total_blocks
;
int64_t
pts
;
/*
TODO:
Skip any leading junk such as id3v2 tags */
ape
->
junklength
=
0
;
/* Skip any leading junk such as id3v2 tags */
ape
->
junklength
=
avio_tell
(
pb
)
;
tag
=
avio_rl32
(
pb
);
if
(
tag
!=
MKTAG
(
'M'
,
'A'
,
'C'
,
' '
))
...
...
@@ -271,7 +271,7 @@ static int ape_read_header(AVFormatContext * s, AVFormatParameters * ap)
ape
->
frames
[
0
].
nblocks
=
ape
->
blocksperframe
;
ape
->
frames
[
0
].
skip
=
0
;
for
(
i
=
1
;
i
<
ape
->
totalframes
;
i
++
)
{
ape
->
frames
[
i
].
pos
=
ape
->
seektable
[
i
];
//ape->frames[i-1].pos + ape->blocksperframe;
ape
->
frames
[
i
].
pos
=
ape
->
seektable
[
i
]
+
ape
->
junklength
;
//ape->frames[i-1].pos + ape->blocksperframe;
ape
->
frames
[
i
].
nblocks
=
ape
->
blocksperframe
;
ape
->
frames
[
i
-
1
].
size
=
ape
->
frames
[
i
].
pos
-
ape
->
frames
[
i
-
1
].
pos
;
ape
->
frames
[
i
].
skip
=
(
ape
->
frames
[
i
].
pos
-
ape
->
frames
[
0
].
pos
)
&
3
;
...
...
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