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
d60c2d52
Commit
d60c2d52
authored
Jul 01, 2016
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mp3dec: read the initial/trailing padding from the LAME tag
parent
7a763714
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
mp3dec.c
libavformat/mp3dec.c
+4
-2
No files found.
libavformat/mp3dec.c
View file @
d60c2d52
...
...
@@ -143,7 +143,7 @@ static void mp3_parse_info_tag(AVFormatContext *s, AVStream *st,
#define MIDDLE_BITS(k, m, n) LAST_BITS((k) >> (m), ((n) - (m)))
uint16_t
crc
;
uint32_t
v
;
uint32_t
v
,
delays
;
char
version
[
10
];
...
...
@@ -215,7 +215,9 @@ static void mp3_parse_info_tag(AVFormatContext *s, AVStream *st,
avio_r8
(
s
->
pb
);
/* Encoder delays */
avio_rb24
(
s
->
pb
);
delays
=
avio_rb24
(
s
->
pb
);
st
->
codecpar
->
initial_padding
=
delays
>>
12
;
st
->
codecpar
->
trailing_padding
=
delays
&
((
1
<<
12
)
-
1
);
/* Misc */
avio_r8
(
s
->
pb
);
...
...
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