From a4f1ffe0f3481caaf37b9562cd04e652007cf68d Mon Sep 17 00:00:00 2001 From: Oleksandr Khodos Date: Thu, 28 Mar 2024 16:10:59 +0200 Subject: [PATCH] Fix test --- packager/live_packager_test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packager/live_packager_test.cc b/packager/live_packager_test.cc index e8ad4295a3..7b23cd97a0 100644 --- a/packager/live_packager_test.cc +++ b/packager/live_packager_test.cc @@ -1049,7 +1049,8 @@ TEST_P(TimedTextParameterizedTest, VerifyTimedText) { ASSERT_GT(out.SegmentSize(), 0); if (live_config.format == LiveConfig::OutputFormat::VTTMP4 || live_config.format == LiveConfig::OutputFormat::TTMLMP4) { - SegmentBuffer seg(out.SegmentData(), out.SegmentSize()); + SegmentBuffer seg; + seg.AppendData(out.SegmentData(), out.SegmentSize()); CheckSegment(live_config, seg, 1000, true); if (i == 0) {