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
eccec203
Commit
eccec203
authored
Apr 13, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/mp3enc: drop redundant and uninitialized variable
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
82796aac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mp3enc.c
libavformat/mp3enc.c
+2
-2
No files found.
libavformat/mp3enc.c
View file @
eccec203
...
...
@@ -124,7 +124,7 @@ static int mp3_write_xing(AVFormatContext *s)
int
best_bitrate_error
=
INT_MAX
;
int
xing_offset
;
int
ver
=
0
;
int
bytes_needed
,
lsf
;
int
bytes_needed
;
const
char
*
vendor
=
(
codec
->
flags
&
CODEC_FLAG_BITEXACT
)
?
"Lavf"
:
LIBAVFORMAT_IDENT
;
if
(
!
s
->
pb
->
seekable
||
!
mp3
->
write_xing
)
...
...
@@ -161,7 +161,7 @@ static int mp3_write_xing(AVFormatContext *s)
header
|=
channels
<<
6
;
for
(
bitrate_idx
=
1
;
bitrate_idx
<
15
;
bitrate_idx
++
)
{
int
bit_rate
=
1000
*
avpriv_mpa_bitrate_tab
[
lsf
][
3
-
1
][
bitrate_idx
];
int
bit_rate
=
1000
*
avpriv_mpa_bitrate_tab
[
ver
!=
3
][
3
-
1
][
bitrate_idx
];
int
error
=
FFABS
(
bit_rate
-
codec
->
bit_rate
);
if
(
error
<
best_bitrate_error
)
{
...
...
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