diff --git a/Tests/TranscodingTests/TranscodingTests.swift b/Tests/TranscodingTests/TranscodingTests.swift index 1be405d..449c76d 100644 --- a/Tests/TranscodingTests/TranscodingTests.swift +++ b/Tests/TranscodingTests/TranscodingTests.swift @@ -7,7 +7,7 @@ import XCTest final class TranscodingTests: XCTestCase { func testFrameEncodedAndDecoded() { execute(withTimeout: 5) { - let encoder = VideoEncoder(config: .init()) + let encoder = VideoEncoder(config: .ultraLowLatency) var stream = encoder.encodedSampleBuffers.makeAsyncIterator() var pixelBuffer: CVPixelBuffer! CVPixelBufferCreate(nil, 3840, 2160, kCVPixelFormatType_32BGRA, nil, &pixelBuffer) @@ -55,7 +55,7 @@ final class TranscodingTests: XCTestCase { func testContinuationsEmptied() { execute(withTimeout: 5) { - let encoder = VideoEncoder(config: .init()) + let encoder = VideoEncoder(config: .ultraLowLatency) var stream: AsyncStream? = encoder.encodedSampleBuffers _ = stream XCTAssertEqual(encoder.continuations.count, 1) @@ -72,12 +72,12 @@ final class TranscodingTests: XCTestCase { func testAnnexBAdaptors() { execute(withTimeout: 5) { - let encoder = VideoEncoder(config: .init()) + let encoder = VideoEncoder(config: .ultraLowLatency) let encoderAdaptor = VideoEncoderAnnexBAdaptor(videoEncoder: encoder) var annexBStream = encoderAdaptor.annexBData.makeAsyncIterator() let decoder = VideoDecoder(config: .init()) var decodedStream = decoder.decodedSampleBuffers.makeAsyncIterator() - let decoderAdaptor = try VideoDecoderAnnexBAdaptor(videoDecoder: decoder, codec: kCMVideoCodecType_HEVC) + let decoderAdaptor = try VideoDecoderAnnexBAdaptor(videoDecoder: decoder, codec: .hevc) var pixelBuffer: CVPixelBuffer! CVPixelBufferCreate(nil, 3840, 2160, kCVPixelFormatType_32BGRA, nil, &pixelBuffer)