Commit 72695809 authored by Josh Coalson's avatar Josh Coalson
Browse files

add verbatim catchall if no subframes are generated

parent f12edc64
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment