avcodec/mlpenc: use FFMAX()

release/5.1
Paul B Mahol 3 years ago
parent cbad385f04
commit dc068a7265
  1. 3
      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;

Loading…
Cancel
Save