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
3163083f
Commit
3163083f
authored
Apr 14, 2015
by
wm4
Committed by
Michael Niedermayer
Apr 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/mp3dec: offset seek index to end of vbr headers
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ddd429fa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
mp3dec.c
libavformat/mp3dec.c
+5
-0
No files found.
libavformat/mp3dec.c
View file @
3163083f
...
...
@@ -334,6 +334,7 @@ static int mp3_read_header(AVFormatContext *s)
AVStream
*
st
;
int64_t
off
;
int
ret
;
int
i
;
st
=
avformat_new_stream
(
s
,
NULL
);
if
(
!
st
)
...
...
@@ -363,6 +364,10 @@ static int mp3_read_header(AVFormatContext *s)
if
(
ret
<
0
)
return
ret
;
// the seek index is relative to the end of the xing vbr headers
for
(
i
=
0
;
i
<
st
->
nb_index_entries
;
i
++
)
st
->
index_entries
[
i
].
pos
+=
avio_tell
(
s
->
pb
);
/* the parameters will be extracted from the compressed bitstream */
return
0
;
}
...
...
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