Repository navigation
fix(ios): correct progress, duration, frame drops and HDR colours in compressWithBitrate - #17
Merged
Merged
Conversation
…compressWithBitrate - Progress is measured from the reader's timeRange start, so a range that doesn't start at 0 no longer jumps straight to 95%. - The result's duration is the compressed range, not the whole asset. - A failed pixel buffer allocation on the resize path now fails the export instead of silently dropping the frame. - HDR sources are decoded to BT.709 and the output is tagged BT.709, so 8-bit H.264 no longer carries BT.2020/HLG tags or no tags at all. - The audio loop drains an autorelease pool per sample, like the video loop. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Follow-ups to #15 in
compressWithBitrate; the per-frame autorelease pool is unchanged.timeRangestart. A range that didn't start at 0 jumped straight to 95% on the first frame.CVReturnin the error) instead of silently dropping the frame.Testing
compressWithBitratecopied unchanged into a macOS harness, run on generated 4 s 1080p30 clips (H.264 SDR and HEVC Main10 HLG), range 1–3 s, 2 Mbps,maxWidth1280 and 0, audio muted:main)Output duration is 2.0 s in every case. The iOS sources typecheck against the iOS simulator SDK. Not run on a device; the harness doesn't measure memory.
🤖 Generated with Claude Code