From 08797c599df5371909f6924d732b654f8892cc91 Mon Sep 17 00:00:00 2001 From: Tim Walker Date: Thu, 7 Feb 2013 09:36:21 +0000 Subject: flac: don't check the number of channels before setting the channel layout This is unnecessary, as ff_flac_set_channel_layout can handle any number of channels. --- libavcodec/flac_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/flac_parser.c') diff --git a/libavcodec/flac_parser.c b/libavcodec/flac_parser.c index 52ec1ee683..e2c6744d78 100644 --- a/libavcodec/flac_parser.c +++ b/libavcodec/flac_parser.c @@ -458,7 +458,7 @@ static int get_best_header(FLACParseContext* fpc, const uint8_t **poutbuf, } if (header->fi.channels != fpc->avctx->channels || - (!fpc->avctx->channel_layout && header->fi.channels <= 6)) { + !fpc->avctx->channel_layout) { fpc->avctx->channels = header->fi.channels; ff_flac_set_channel_layout(fpc->avctx); } -- cgit v1.2.3