The BZIP2 API usage was wrong. Patch by Aurelien Jacobs.

This commit is contained in:
Moritz Bunkus 2008-05-16 12:06:21 +00:00
parent 000102c88d
commit aabcccffd5
3 changed files with 8 additions and 2 deletions

View File

@ -18,6 +18,7 @@ Hakobyan, Sergey <sergey.hakobyan@viragelogic.com>
Jacobs, Aurelien <aurel@gnuage.org>
* Support for RealAudio v3 in RealMedia files
* Bugfixes (e.g. BZIP2 compression)
Le Guen, Nicolas (Goldenear) <nleguen@pepper-prod.com>
* Enhancements and updates to the "CUE sheet to tags & chapter

View File

@ -1,3 +1,8 @@
2008-05-16 Moritz Bunkus <moritz@bunkus.org>
* mkvmerge: bug fix: Using BZIP2 compression resulted in broken
streams. Patch by Aurelien Jacobs (see AUTHORS).
2008-05-15 Moritz Bunkus <moritz@bunkus.org>
* mkvmerge: new feature: Improved support for WAV files bigger

View File

@ -229,8 +229,8 @@ bzlib_compressor_c::compress(memory_cptr &buffer) {
c_stream.next_out = (char *)dst;
c_stream.avail_in = size;
c_stream.avail_out = 2 * size;
result = BZ2_bzCompress(&c_stream, BZ_FLUSH);
if (result != BZ_RUN_OK)
result = BZ2_bzCompress(&c_stream, BZ_FINISH);
if (result != BZ_STREAM_END)
mxerror("bzip2 compression failed. Result: %d\n", result);
BZ2_bzCompressEnd(&c_stream);