ffmpeg | branch: master | Sean McGovern <gsean...@gmail.com> | Sun Nov 3 21:58:43 2024 -0500| [c325f9c619b38614ab6e339cefacd596266db471] | committer: Brad Smith
libavutil/ppc: defines involving bit shifts should be unsigned Otherwise, these can overflow at the boundaries of the integer type. Signed-off-by: Brad Smith <b...@comstyle.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c325f9c619b38614ab6e339cefacd596266db471 --- libavutil/ppc/cpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavutil/ppc/cpu.c b/libavutil/ppc/cpu.c index 62d495ec1d..9f9c073434 100644 --- a/libavutil/ppc/cpu.c +++ b/libavutil/ppc/cpu.c @@ -53,9 +53,9 @@ #define AT_HWCAP2 26 #endif -#define HWCAP_PPC_VSX (1 << 7) -#define HWCAP_PPC_ALTIVEC (1 << 28) -#define HWCAP2_PPC_ARCH_2_07 (1 << 31) +#define HWCAP_PPC_VSX (1U << 7) +#define HWCAP_PPC_ALTIVEC (1U << 28) +#define HWCAP2_PPC_ARCH_2_07 (1U << 31) /** * This function MAY rely on signal() or fork() in order to make sure AltiVec _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".