mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 07:50:13 +00:00
A crop on yuv420p rounds an odd size or offset down to even. readClip split the 32x32 output as 33x33 bytes, so a 10-frame clip came back as 9.4 frames and every frame after the first was misaligned; an odd offset also shifted the chroma. Raw reads now convert to rgb24 (or gray) before the crop, which is exact at any size and place. extract and diff stay on yuv and add exact=1. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>