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
Stefan Strogin
flac
Commits
72695809
Commit
72695809
authored
Oct 11, 2002
by
Josh Coalson
Browse files
add verbatim catchall if no subframes are generated
parent
f12edc64
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libFLAC/stream_encoder.c
View file @
72695809
...
...
@@ -2108,7 +2108,11 @@ FLAC__bool process_subframe_(
}
}
FLAC__ASSERT
(
_best_bits
<
UINT_MAX
);
/* under rare circumstances this can happen when all but lpc subframe types are disabled: */
if
(
_best_bits
==
UINT_MAX
)
{
FLAC__ASSERT
(
_best_subframe
==
0
);
_best_bits
=
evaluate_verbatim_subframe_
(
integer_signal
,
frame_header
->
blocksize
,
subframe_bps
,
subframe
[
_best_subframe
]);
}
*
best_subframe
=
_best_subframe
;
*
best_bits
=
_best_bits
;
...
...
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