Commit ef13967e authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'f13ffb66'

* commit 'f13ffb66':
  flacdec: do not overwrite a channel layout set by the caller
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 8518da23 f13ffb66
......@@ -225,7 +225,10 @@ void avpriv_flac_parse_streaminfo(AVCodecContext *avctx, struct FLACStreaminfo *
avctx->channels = s->channels;
avctx->sample_rate = s->samplerate;
avctx->bits_per_raw_sample = s->bps;
ff_flac_set_channel_layout(avctx);
if (!avctx->channel_layout ||
av_get_channel_layout_nb_channels(avctx->channel_layout) != avctx->channels)
ff_flac_set_channel_layout(avctx);
s->samples = get_bits64(&gb, 36);
......
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