Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Strogin
flac
Commits
5899bcb7
Commit
5899bcb7
authored
Oct 20, 2004
by
Josh Coalson
Browse files
fix bug in handling of --input-size
parent
2a23c635
Changes
1
Show whitespace changes
Inline
Side-by-side
src/flac/main.c
View file @
5899bcb7
...
...
@@ -1535,13 +1535,15 @@ int encode_file(const char *infilename, FLAC__bool is_first_file, FLAC__bool is_
}
}
if
(
option_values
.
format_input_size
>=
0
&&
(
fmt
!=
RAW
||
infilesize
>=
0
))
{
if
(
option_values
.
format_input_size
>=
0
)
{
if
(
fmt
!=
RAW
||
infilesize
>=
0
)
{
flac__utils_printf
(
stderr
,
1
,
"ERROR: can only use --input-size when encoding raw samples from stdin
\n
"
);
return
1
;
}
else
{
infilesize
=
option_values
.
format_input_size
;
}
}
if
(
option_values
.
sector_align
&&
fmt
==
RAW
&&
infilesize
<
0
)
{
flac__utils_printf
(
stderr
,
1
,
"ERROR: can't --sector-align when the input size is unknown
\n
"
);
...
...
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