Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
finnvoor committed Feb 8, 2024
1 parent dbfec7b commit 1517e7c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/TranscodingTests/TranscodingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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<CMSampleBuffer>? = encoder.encodedSampleBuffers
_ = stream
XCTAssertEqual(encoder.continuations.count, 1)
Expand All @@ -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)
Expand Down

0 comments on commit 1517e7c

Please sign in to comment.