mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
ttadec: use branchless unsigned-to-signed unfolding
This commit is contained in:
+1
-2
@@ -396,8 +396,7 @@ static int tta_decode_frame(AVCodecContext *avctx, void *data,
|
||||
}
|
||||
|
||||
// extract coded value
|
||||
#define UNFOLD(x) (((x)&1) ? (++(x)>>1) : (-(x)>>1))
|
||||
*p = UNFOLD(value);
|
||||
*p = 1 + ((value >> 1) ^ ((value & 1) - 1));
|
||||
|
||||
// run hybrid filter
|
||||
ttafilter_process(filter, p);
|
||||
|
||||
Reference in New Issue
Block a user