mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-11 13:30:47 -04:00
fix(flac): don't throw bad_compression error as this loses metadata
This commit is contained in:
parent
b61662c2be
commit
736300697f
@ -331,9 +331,10 @@ class flac_block_compressor final : public block_compressor::impl {
|
||||
DWARFS_THROW(runtime_error, "[FLAC] failed to finish encoder");
|
||||
}
|
||||
|
||||
if (compressed.size() >= data.size()) {
|
||||
throw bad_compression_ratio_error();
|
||||
}
|
||||
// XXX: don't throw this as we're losing metadata
|
||||
// if (compressed.size() >= data.size()) {
|
||||
// throw bad_compression_ratio_error();
|
||||
// }
|
||||
|
||||
compressed.shrink_to_fit();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user