This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new dfa53aae5f avutil/bswap: fix implicit conversion warning in av_bswap64
dfa53aae5f is described below
commit dfa53aae5f950d29b1d298193a7558d5438170d9
Author: marcos ashton <[email protected]>
AuthorDate: Fri Mar 20 23:48:36 2026 +0000
Commit: michaelni <[email protected]>
CommitDate: Sat Mar 21 00:34:50 2026 +0000
avutil/bswap: fix implicit conversion warning in av_bswap64
Explicitly cast uint64_t arguments to uint32_t before passing them
to av_bswap32(). The truncation is intentional (extracting low and
high halves), but clang on macOS 26 warns about it.
Fixes: https://code.ffmpeg.org/FFmpeg/FFmpeg/issues/22453
Signed-off-by: marcos ashton <[email protected]>
---
libavutil/bswap.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/bswap.h b/libavutil/bswap.h
index f53e5768ad..c1e6591ce0 100644
--- a/libavutil/bswap.h
+++ b/libavutil/bswap.h
@@ -68,7 +68,7 @@ static av_always_inline av_const uint32_t av_bswap32(uint32_t
x)
#ifndef av_bswap64
static inline uint64_t av_const av_bswap64(uint64_t x)
{
- return (uint64_t)av_bswap32(x) << 32 | av_bswap32(x >> 32);
+ return (uint64_t)av_bswap32((uint32_t)x) << 32 | av_bswap32((uint32_t)(x
>> 32));
}
#endif
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]