diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2009-01-19 14:00:33 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2009-01-19 14:00:33 +0200 |
commit | 4810b6bc25087be872960b9dd1d11ff07735dc88 (patch) | |
tree | b81b5704824f73450c94e61a15700e61e4ba9faa /src/liblzma/lzma/lzma_encoder.c | |
parent | Remove dead code. (diff) | |
download | xz-4810b6bc25087be872960b9dd1d11ff07735dc88.tar.xz |
Move some LZMA2 constants to lzma2_encoder.h so that they
can be used outside lzma2_encoder.c.
Diffstat (limited to 'src/liblzma/lzma/lzma_encoder.c')
-rw-r--r-- | src/liblzma/lzma/lzma_encoder.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/liblzma/lzma/lzma_encoder.c b/src/liblzma/lzma/lzma_encoder.c index 70fd93eb..79bb8f9b 100644 --- a/src/liblzma/lzma/lzma_encoder.c +++ b/src/liblzma/lzma/lzma_encoder.c @@ -18,6 +18,7 @@ // /////////////////////////////////////////////////////////////////////////////// +#include "lzma2_encoder.h" #include "lzma_encoder_private.h" #include "fastpos.h" @@ -342,7 +343,7 @@ lzma_lzma_encode(lzma_coder *restrict coder, lzma_mf *restrict mf, if (limit != UINT32_MAX && (mf->read_pos - mf->read_ahead >= limit || *out_pos + rc_pending(&coder->rc) - >= (UINT32_C(1) << 16) + >= LZMA2_CHUNK_MAX - LOOP_INPUT_MAX)) break; |