diff options
author | Paul B Mahol <onemda@gmail.com> | 2022-04-12 18:50:25 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2022-04-12 19:30:58 +0200 |
commit | dc068a7265b432a6a919acef462b927e5c156646 (patch) | |
tree | 1fc6e1658b9f454008f09f62232b91f3f55ac28e /libavcodec | |
parent | cbad385f040959fca32568e9ba29e6f05ddd8730 (diff) | |
download | ffmpeg-dc068a7265b432a6a919acef462b927e5c156646.tar.gz |
avcodec/mlpenc: use FFMAX()
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mlpenc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/mlpenc.c b/libavcodec/mlpenc.c index 25adf6f998..a55302ccc7 100644 --- a/libavcodec/mlpenc.c +++ b/libavcodec/mlpenc.c @@ -1187,8 +1187,7 @@ static void input_data_internal(MLPEncodeContext *ctx, const uint8_t *samples, /* TODO Find out if number_sbits can be used for negative values. */ abs_sample = FFABS(sample); - if (greatest < abs_sample) - greatest = abs_sample; + greatest = FFMAX(greatest, abs_sample); temp_lossless_check_data ^= (sample & 0x00ffffff) << channel; *sample_buffer++ = sample; |