avcodec/mlpenc: simplify calling function

release/5.1
Paul B Mahol 3 years ago
parent dc068a7265
commit c2351d5a53
  1. 5
      libavcodec/mlpenc.c

@ -1204,10 +1204,7 @@ static void input_data_internal(MLPEncodeContext *ctx, const uint8_t *samples,
/** Wrapper function for inputting data in two different bit-depths. */ /** Wrapper function for inputting data in two different bit-depths. */
static void input_data(MLPEncodeContext *ctx, void *samples, int nb_samples) static void input_data(MLPEncodeContext *ctx, void *samples, int nb_samples)
{ {
if (ctx->avctx->sample_fmt == AV_SAMPLE_FMT_S32) input_data_internal(ctx, samples, nb_samples, ctx->avctx->sample_fmt == AV_SAMPLE_FMT_S32);
input_data_internal(ctx, samples, nb_samples, 1);
else
input_data_internal(ctx, samples, nb_samples, 0);
} }
static void input_to_sample_buffer(MLPEncodeContext *ctx) static void input_to_sample_buffer(MLPEncodeContext *ctx)

Loading…
Cancel
Save