Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
flac
Commits
e7e63f8c
Commit
e7e63f8c
authored
Jan 13, 2001
by
Josh Coalson
Browse files
minor tweaks to verbos output
parent
bd3c4228
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/flac/decode.c
View file @
e7e63f8c
...
...
@@ -95,20 +95,24 @@ int decode_wav(const char *infile, const char *outfile, bool verbose, uint64 ski
goto
wav_abort_
;
}
if
(
!
FLAC__file_decoder_process_remaining_frames
(
decoder
))
{
if
(
verbose
)
(
printf
(
"
\n
"
);
fflush
(
stdout
);
}
fprintf
(
stderr
,
"%s: ERROR during decoding
\n
"
,
infile
);
goto
wav_abort_
;
}
if
(
decoder
->
state
!=
FLAC__FILE_DECODER_OK
&&
decoder
->
state
!=
FLAC__FILE_DECODER_END_OF_FILE
)
{
if
(
verbose
)
(
printf
(
"
\n
"
);
fflush
(
stdout
);
}
fprintf
(
stderr
,
"%s: ERROR during decoding
\n
"
,
infile
);
goto
wav_abort_
;
}
}
else
{
if
(
!
FLAC__file_decoder_process_whole_file
(
decoder
))
{
if
(
verbose
)
(
printf
(
"
\n
"
);
fflush
(
stdout
);
}
fprintf
(
stderr
,
"%s: ERROR during decoding
\n
"
,
infile
);
goto
wav_abort_
;
}
if
(
decoder
->
state
!=
FLAC__FILE_DECODER_OK
&&
decoder
->
state
!=
FLAC__FILE_DECODER_END_OF_FILE
)
{
if
(
verbose
)
(
printf
(
"
\n
"
);
fflush
(
stdout
);
}
fprintf
(
stderr
,
"%s: ERROR during decoding, state=%d:%s
\n
"
,
infile
,
decoder
->
state
,
FLAC__FileDecoderStateString
[
decoder
->
state
]);
goto
wav_abort_
;
}
...
...
@@ -188,20 +192,24 @@ int decode_raw(const char *infile, const char *outfile, bool verbose, uint64 ski
goto
raw_abort_
;
}
if
(
!
FLAC__file_decoder_process_remaining_frames
(
decoder
))
{
if
(
verbose
)
(
printf
(
"
\n
"
);
fflush
(
stdout
);
}
fprintf
(
stderr
,
"%s: ERROR during decoding
\n
"
,
infile
);
goto
raw_abort_
;
}
if
(
decoder
->
state
!=
FLAC__FILE_DECODER_OK
&&
decoder
->
state
!=
FLAC__FILE_DECODER_END_OF_FILE
)
{
if
(
verbose
)
(
printf
(
"
\n
"
);
fflush
(
stdout
);
}
fprintf
(
stderr
,
"%s: ERROR during decoding
\n
"
,
infile
);
goto
raw_abort_
;
}
}
else
{
if
(
!
FLAC__file_decoder_process_whole_file
(
decoder
))
{
if
(
verbose
)
(
printf
(
"
\n
"
);
fflush
(
stdout
);
}
fprintf
(
stderr
,
"%s: ERROR during decoding
\n
"
,
infile
);
goto
raw_abort_
;
}
if
(
decoder
->
state
!=
FLAC__FILE_DECODER_OK
&&
decoder
->
state
!=
FLAC__FILE_DECODER_END_OF_FILE
)
{
if
(
verbose
)
(
printf
(
"
\n
"
);
fflush
(
stdout
);
}
fprintf
(
stderr
,
"%s: ERROR during decoding
\n
"
,
infile
);
goto
raw_abort_
;
}
...
...
Write
Preview
Supports
Markdown
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