From cbe0a25c38c649753f4a2e3778a2b2f757e5c0d9 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sun, 22 May 2005 10:05:03 +0000 Subject: [PATCH] Set the default compression method in the packetizer. Otherwise it would have to be set in each reader. --- src/input/r_usf.cpp | 1 - src/output/p_textsubs.cpp | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) 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() {