mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-02-26 08:22:31 +00:00
The BZIP2 API usage was wrong. Patch by Aurelien Jacobs.
This commit is contained in:
parent
000102c88d
commit
aabcccffd5
1
AUTHORS
1
AUTHORS
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user