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) {