Commit aa6cf4c1 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '72dee5f4'

* commit '72dee5f4':
  wavpack: don't set sample format in init.
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 288e3fdf 72dee5f4
......@@ -722,10 +722,7 @@ static av_cold int wavpack_decode_init(AVCodecContext *avctx)
WavpackContext *s = avctx->priv_data;
s->avctx = avctx;
if (avctx->bits_per_coded_sample <= 16)
avctx->sample_fmt = AV_SAMPLE_FMT_S16P;
else
avctx->sample_fmt = AV_SAMPLE_FMT_S32P;
if (avctx->channels <= 2 && !avctx->channel_layout)
avctx->channel_layout = (avctx->channels == 2) ? AV_CH_LAYOUT_STEREO
: AV_CH_LAYOUT_MONO;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment