Set the default compression method in the packetizer. Otherwise it would have to be set in each reader.

This commit is contained in:
Moritz Bunkus 2005-05-22 10:05:03 +00:00
parent dce6b8c2ea
commit cbe0a25c38
2 changed files with 2 additions and 1 deletions

View File

@ -328,7 +328,6 @@ usf_reader_c::create_packetizer(int64_t tid) {
m_private_data.c_str(), m_private_data.c_str(),
m_private_data.length(), false, m_private_data.length(), false,
true, ti)); true, ti));
PTZR(track.m_ptzr)->set_default_compression_method(COMPRESSION_ZLIB);
mxinfo(FMT_TID "Using the text subtitle output module.\n", ti.fname.c_str(), mxinfo(FMT_TID "Using the text subtitle output module.\n", ti.fname.c_str(),
tid); tid);
} }

View File

@ -45,6 +45,8 @@ textsubs_packetizer_c::textsubs_packetizer_c(generic_reader_c *_reader,
} }
set_track_type(track_subtitle); set_track_type(track_subtitle);
if (codec_id == MKV_S_TEXTUSF)
set_default_compression_method(COMPRESSION_ZLIB);
} }
textsubs_packetizer_c::~textsubs_packetizer_c() { textsubs_packetizer_c::~textsubs_packetizer_c() {