Re-enabled selecting the compression scheme for VobSubs.

This commit is contained in:
Moritz Bunkus 2003-09-23 17:03:58 +00:00
parent 4e2705a521
commit 135f440ab9

View File

@ -43,10 +43,10 @@ vobsub_packetizer_c::vobsub_packetizer_c(generic_reader_c *nreader,
idx_data = (unsigned char *)safememdup(nidx_data, nidx_data_size);
idx_data_size = nidx_data_size;
if (nti->compression == COMPRESSION_UNSPECIFIED)
if (ti->compression == COMPRESSION_UNSPECIFIED)
compression_type = ncompression_type;
else
compression_type = nti->compression;
compression_type = ti->compression;
compressed_type = ncompressed_type;
raw_size = 0;
@ -55,6 +55,9 @@ vobsub_packetizer_c::vobsub_packetizer_c(generic_reader_c *nreader,
set_track_type(track_subtitle);
compressor = NULL;
decompressor = NULL;
compression = "no";
if (compression_type != compressed_type) {
compression = NULL;