This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit a2737497de4752813f27b4571e67a79c88c227d7 Author: Lynne <[email protected]> AuthorDate: Wed May 13 00:16:57 2026 +0900 Commit: Lynne <[email protected]> CommitDate: Thu May 14 02:55:53 2026 +0900 vulkan/prores_raw: add skip_bits_unchecked and use it show_bits(gb, 32) is called immediately above. It guarantees that the following skip_bits call will not need to reload. --- libavcodec/vulkan/common.glsl | 6 ++++++ libavcodec/vulkan/prores_raw_decode.comp.glsl | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libavcodec/vulkan/common.glsl b/libavcodec/vulkan/common.glsl index 8489a363cb..0ff9b45b7d 100644 --- a/libavcodec/vulkan/common.glsl +++ b/libavcodec/vulkan/common.glsl @@ -362,6 +362,12 @@ void skip_bits(inout GetBitContext gb, int n) gb.bits_valid -= n; } +void skip_bits_unchecked(inout GetBitContext gb, int n) +{ + gb.bits <<= n; + gb.bits_valid -= n; +} + int tell_bits(in GetBitContext gb) { return int(gb.buf - gb.buf_start) * 8 - gb.bits_valid; diff --git a/libavcodec/vulkan/prores_raw_decode.comp.glsl b/libavcodec/vulkan/prores_raw_decode.comp.glsl index 87670c9ee5..3b35097773 100644 --- a/libavcodec/vulkan/prores_raw_decode.comp.glsl +++ b/libavcodec/vulkan/prores_raw_decode.comp.glsl @@ -99,7 +99,7 @@ int get_value(int16_t codebook) int q = 31 - findMSB(b); if (q <= switch_bits) { - skip_bits(gb, q + rice_order + 1); + skip_bits_unchecked(gb, q + rice_order + 1); return int((q << rice_order) + (((b << (q + 1)) >> 1) >> (31 - rice_order))); } _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
