Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
finnvoor committed Mar 2, 2024
1 parent 72fe5ef commit b6a4ed0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions Sources/Transcoding/VideoDecoderAnnexBAdaptor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,3 @@ public extension VideoDecoderAnnexBAdaptor {
case hevc
}
}

// MARK: VideoDecoderAnnexBAdaptor.Error

public extension VideoDecoderAnnexBAdaptor {
enum Error: Swift.Error {
case unsupportedCodec
}
}
2 changes: 1 addition & 1 deletion Tests/TranscodingTests/TranscodingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ final class TranscodingTests: XCTestCase {
var annexBStream = encoderAdaptor.annexBData.makeAsyncIterator()
let decoder = VideoDecoder(config: .init())
var decodedStream = decoder.decodedSampleBuffers.makeAsyncIterator()
let decoderAdaptor = try VideoDecoderAnnexBAdaptor(videoDecoder: decoder, codec: .hevc)
let decoderAdaptor = VideoDecoderAnnexBAdaptor(videoDecoder: decoder, codec: .hevc)

var pixelBuffer: CVPixelBuffer!
CVPixelBufferCreate(nil, 3840, 2160, kCVPixelFormatType_32BGRA, nil, &pixelBuffer)
Expand Down

0 comments on commit b6a4ed0

Please sign in to comment.