You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Merge commit 'f13ffb6636fdecb5e3e0ddcff48f096e7b3db362'
* commit 'f13ffb6636fdecb5e3e0ddcff48f096e7b3db362': flacdec: do not overwrite a channel layout set by the caller Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -225,6 +225,9 @@ void avpriv_flac_parse_streaminfo(AVCodecContext *avctx, struct FLACStreaminfo *
|
|||||||
avctx->channels = s->channels;
|
avctx->channels = s->channels;
|
||||||
avctx->sample_rate = s->samplerate;
|
avctx->sample_rate = s->samplerate;
|
||||||
avctx->bits_per_raw_sample = s->bps;
|
avctx->bits_per_raw_sample = s->bps;
|
||||||
|
|
||||||
|
if (!avctx->channel_layout ||
|
||||||
|
av_get_channel_layout_nb_channels(avctx->channel_layout) != avctx->channels)
|
||||||
ff_flac_set_channel_layout(avctx);
|
ff_flac_set_channel_layout(avctx);
|
||||||
|
|
||||||
s->samples = get_bits64(&gb, 36);
|
s->samples = get_bits64(&gb, 36);
|
||||||
|
Reference in New Issue
Block a user