diff --git a/src/input/r_usf.cpp b/src/input/r_usf.cpp index 802fdff59..51898d01f 100644 --- a/src/input/r_usf.cpp +++ b/src/input/r_usf.cpp @@ -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); } diff --git a/src/output/p_textsubs.cpp b/src/output/p_textsubs.cpp index f91828bcf..22143919d 100644 --- a/src/output/p_textsubs.cpp +++ b/src/output/p_textsubs.cpp @@ -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() {