Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Vorbis tools
Commits
de1f0bcf
Commit
de1f0bcf
authored
Nov 25, 2001
by
Michael Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stupid bug setting wrong unset value for min/max bitrates
svn path=/trunk/vorbis-tools/; revision=2406
parent
e8015967
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
oggenc/encode.c
oggenc/encode.c
+4
-2
No files found.
oggenc/encode.c
View file @
de1f0bcf
...
...
@@ -62,8 +62,10 @@ int oe_encode(oe_enc_opt *opt)
}
else
{
if
(
vorbis_encode_init
(
&
vi
,
opt
->
channels
,
opt
->
rate
,
opt
->
min_bitrate
*
1000
,
opt
->
bitrate
*
1000
,
opt
->
max_bitrate
*
1000
))
if
(
vorbis_encode_init
(
&
vi
,
opt
->
channels
,
opt
->
rate
,
opt
->
min_bitrate
>
0
?
opt
->
min_bitrate
*
1000
:-
1
,
opt
->
bitrate
*
1000
,
opt
->
max_bitrate
>
0
?
opt
->
max_bitrate
*
1000
:-
1
))
{
fprintf
(
stderr
,
"Mode initialisation failed: invalid parameters for bitrate
\n
"
);
vorbis_info_clear
(
&
vi
);
...
...
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