mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
Set the default compression method in the packetizer. Otherwise it would have to be set in each reader.
This commit is contained in:
parent
dce6b8c2ea
commit
cbe0a25c38
@ -328,7 +328,6 @@ usf_reader_c::create_packetizer(int64_t tid) {
|
||||
m_private_data.c_str(),
|
||||
m_private_data.length(), false,
|
||||
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(),
|
||||
tid);
|
||||
}
|
||||
|
@ -45,6 +45,8 @@ textsubs_packetizer_c::textsubs_packetizer_c(generic_reader_c *_reader,
|
||||
}
|
||||
|
||||
set_track_type(track_subtitle);
|
||||
if (codec_id == MKV_S_TEXTUSF)
|
||||
set_default_compression_method(COMPRESSION_ZLIB);
|
||||
}
|
||||
|
||||
textsubs_packetizer_c::~textsubs_packetizer_c() {
|
||||
|
Loading…
Reference in New Issue
Block a user