From 4b30aef4c08b9b5d13d0071a98f2f4eea6940ea4 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 15 Aug 2023 18:44:53 +0200 Subject: [PATCH] avcodec/alac: use branchless sign --- libavcodec/alac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/alac.c b/libavcodec/alac.c index 13754d407d..538d1e5984 100644 --- a/libavcodec/alac.c +++ b/libavcodec/alac.c @@ -169,7 +169,7 @@ static int rice_decompress(ALACContext *alac, int32_t *output_buffer, static inline int sign_only(int v) { - return v ? FFSIGN(v) : 0; + return FFDIFFSIGN(v, 0); } static void lpc_prediction(int32_t *error_buffer, uint32_t *buffer_out,