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
46278ec9
Commit
46278ec9
authored
Jul 01, 2016
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mp3enc: write trailing padding
parent
d60c2d52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
mp3enc.c
libavformat/mp3enc.c
+4
-3
No files found.
libavformat/mp3enc.c
View file @
46278ec9
...
...
@@ -245,11 +245,12 @@ static void mp3_write_xing(AVFormatContext *s)
avio_w8
(
dyn_ctx
,
0
);
// unknown abr/minimal bitrate
// encoder delay
if
(
par
->
initial_padding
>=
1
<<
12
)
{
av_log
(
s
,
AV_LOG_WARNING
,
"Too many samples of initial padding.
\n
"
);
if
(
par
->
initial_padding
>=
1
<<
12
||
par
->
trailing_padding
>=
1
<<
12
)
{
av_log
(
s
,
AV_LOG_WARNING
,
"Too many samples of padding.
\n
"
);
avio_wb24
(
dyn_ctx
,
0
);
}
else
{
avio_wb24
(
dyn_ctx
,
par
->
initial_padding
<<
12
);
avio_wb24
(
dyn_ctx
,
par
->
initial_padding
<<
12
|
par
->
trailing_padding
);
}
avio_w8
(
dyn_ctx
,
0
);
// misc
...
...
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