[FFmpeg-cvslog] avcodec/alac: use branchless sign
Paul B Mahol
git at videolan.org
Tue Aug 15 20:11:46 EEST 2023
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Aug 15 18:44:53 2023 +0200| [4b30aef4c08b9b5d13d0071a98f2f4eea6940ea4] | committer: Paul B Mahol
avcodec/alac: use branchless sign
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4b30aef4c08b9b5d13d0071a98f2f4eea6940ea4
---
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,
More information about the ffmpeg-cvslog
mailing list