This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/9.1 in repository ffmpeg.
commit c3a0f6c47ae21e333f211e700532a0e754279aac Author: Michael Niedermayer <[email protected]> AuthorDate: Sat Nov 7 22:08:08 2026 +0100 Commit: Michael Niedermayer <[email protected]> CommitDate: Sun Nov 15 06:17:20 2026 +0100 avutil/frame: count the trailing zeros of the whole cropping offset Fixes: passing zero to __builtin_ctz() Fixes: bHs7sJdzdvhW Found during the review of https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25020 Passing zero to __builtin_ctz() Replicated through API with UBSAN (cherry picked from commit c9bb7fb6428757dfbe270e92cc91f75723de8f74) Signed-off-by: Michael Niedermayer <[email protected]> --- libavutil/frame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/frame.c b/libavutil/frame.c index 81b77ba569..c79c1b76d5 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c @@ -802,7 +802,7 @@ int av_frame_apply_cropping(AVFrame *frame, int flags) int min_log2_align = INT_MAX; for (int i = 0; frame->data[i]; i++) { - int log2_align = offsets[i] ? ff_ctz(offsets[i]) : INT_MAX; + int log2_align = offsets[i] ? ff_ctzll(offsets[i]) : INT_MAX; min_log2_align = FFMIN(log2_align, min_log2_align); } -- 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]
