Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
finnvoor committed Feb 20, 2024
1 parent 9b47c15 commit e5e8366
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Transcoding (WIP)
It is recommended that you pin to a specific commit at the moment, since there may be breaking changes before an official release.

Example usage. You can also use it without the annex B adaptors if you only need compressed sample buffers, but the annex B adaptors are perfect for sending video over a network.
```swift
Expand All @@ -7,7 +8,7 @@ let videoEncoderAnnexBAdaptor = VideoEncoderAnnexBAdaptor(
videoEncoder: videoEncoder
)
let videoDecoder = VideoDecoder(config: .init())
let videoDecoderAnnexBAdaptor = try! VideoDecoderAnnexBAdaptor(
let videoDecoderAnnexBAdaptor = VideoDecoderAnnexBAdaptor(
videoDecoder: videoDecoder,
codec: .hevc
)
Expand Down
2 changes: 1 addition & 1 deletion Sources/Transcoding/VideoDecoderAnnexBAdaptor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public final class VideoDecoderAnnexBAdaptor {
public init(
videoDecoder: VideoDecoder,
codec: Codec
) throws {
) {
self.videoDecoder = videoDecoder
self.codec = codec
}
Expand Down

0 comments on commit e5e8366

Please sign in to comment.