aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/flacdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-12-22 13:25:53 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-12-22 13:25:53 +0100
commit98256622a66ebda8f07bb725419c35bb8aa7e01b (patch)
tree76f39fe2fbf9c91a5fbb8a55251e36ebf55121a8 /libavcodec/flacdec.c
parent3f72dbe4620716113754d06b7ffd558e56d1585f (diff)
parentaef5150719f03ce87e67c17d2006e24d8961aa17 (diff)
downloadffmpeg-98256622a66ebda8f07bb725419c35bb8aa7e01b.tar.gz
Merge remote-tracking branch 'qatar/master'
* qatar/master: flac: only set channel layout if not previously set or on channel count change prepare 9_beta3 release Conflicts: RELEASE Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/flacdec.c')
-rw-r--r--libavcodec/flacdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c
index d555ddfc2e..9d5ecd04cf 100644
--- a/libavcodec/flacdec.c
+++ b/libavcodec/flacdec.c
@@ -424,7 +424,8 @@ static int decode_frame(FLACContext *s)
return ret;
}
s->channels = s->avctx->channels = fi.channels;
- ff_flac_set_channel_layout(s->avctx);
+ if (!s->avctx->channel_layout && s->channels <= 6)
+ ff_flac_set_channel_layout(s->avctx);
s->ch_mode = fi.ch_mode;
if (!s->bps && !fi.bps) {