ffmpeg | branch: master | Paul B Mahol <[email protected]> | 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, _______________________________________________ ffmpeg-cvslog mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
