mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-02-13 19:05:37 +00:00
avcodec/pcm: Reindent after the previous commit
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
c6d7436508
commit
05ab776210
1 changed files with 8 additions and 9 deletions
|
|
@ -279,16 +279,15 @@ static av_cold av_unused int pcm_scale_decode_init(AVCodecContext *avctx)
|
|||
avctx->sample_fmt = AV_SAMPLE_FMT_FLT;
|
||||
s->base.sample_size = 4;
|
||||
|
||||
if (avctx->bits_per_coded_sample < 1 || avctx->bits_per_coded_sample > 24)
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
s->scale = 1. / (1 << (avctx->bits_per_coded_sample - 1));
|
||||
fdsp = avpriv_float_dsp_alloc(0);
|
||||
if (!fdsp)
|
||||
return AVERROR(ENOMEM);
|
||||
s->vector_fmul_scalar = fdsp->vector_fmul_scalar;
|
||||
av_free(fdsp);
|
||||
if (avctx->bits_per_coded_sample < 1 || avctx->bits_per_coded_sample > 24)
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
s->scale = 1. / (1 << (avctx->bits_per_coded_sample - 1));
|
||||
fdsp = avpriv_float_dsp_alloc(0);
|
||||
if (!fdsp)
|
||||
return AVERROR(ENOMEM);
|
||||
s->vector_fmul_scalar = fdsp->vector_fmul_scalar;
|
||||
av_free(fdsp);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue