This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 9a69dc787de7ec6a5a17c74247eaadd46b7a5066 Author: Lynne <[email protected]> AuthorDate: Wed Sep 9 01:34:11 2026 +0900 Commit: Lynne <[email protected]> CommitDate: Sun Sep 20 15:13:01 2026 +0900 vulkan/prores_idct: clip values to maximum allowed range This matches the software decoder. --- libavcodec/vulkan/prores_idct.comp.glsl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libavcodec/vulkan/prores_idct.comp.glsl b/libavcodec/vulkan/prores_idct.comp.glsl index b514cb4c77..8ef22b0384 100644 --- a/libavcodec/vulkan/prores_idct.comp.glsl +++ b/libavcodec/vulkan/prores_idct.comp.glsl @@ -102,13 +102,16 @@ void main(void) barrier(); float fact = 1 << (depth - 1); - int maxv = (1 << depth) - 1; + + /* Samples are clipped to the legal range, excluding the values reserved + * for synchronization, matching the software decoder */ + int minv = 4, maxv = (1 << depth) - 5; /* 7.5.1 Color Component Samples. Rescale, clamp and write back to global memory */ if (act) { [[unroll]] for (uint i = 0; i < 8; ++i) { float v = round(blocks[block][i * 9 + idx] * fact); - put_px(comp, ivec2(gid.x, (gid.y << 3) + i), clamp(int(v), 0, maxv)); + put_px(comp, ivec2(gid.x, (gid.y << 3) + i), clamp(int(v), minv, maxv)); } } } -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
