diff options
author | Paul B Mahol <onemda@gmail.com> | 2023-08-15 18:44:53 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-08-15 19:09:23 +0200 |
commit | 4b30aef4c08b9b5d13d0071a98f2f4eea6940ea4 (patch) | |
tree | c4f61361d37b9caf752322aab5172588d7a18692 | |
parent | 4463778aab8f01c9acf02b23d41a61df32ccfe88 (diff) | |
download | ffmpeg-4b30aef4c08b9b5d13d0071a98f2f4eea6940ea4.tar.gz |
avcodec/alac: use branchless sign
-rw-r--r-- | libavcodec/alac.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |