summaryrefslogtreecommitdiffstats
path: root/libavcodec/flac_parser.c
diff options
context:
space:
mode:
authorTim Walker <tdskywalker@gmail.com>2013-01-22 21:53:53 +0100
committerAnton Khirnov <anton@khirnov.net>2013-02-06 21:43:05 +0100
commit41244e13d5452e70cfd42f76ede4a20b7081c71f (patch)
tree23c12c3283721fa909a3458954e74e77f5956c3b /libavcodec/flac_parser.c
parenta846dccb29d2bb0798af1d47d06100eda9ca87cc (diff)
downloadffmpeg-streaming-41244e13d5452e70cfd42f76ede4a20b7081c71f.zip
ffmpeg-streaming-41244e13d5452e70cfd42f76ede4a20b7081c71f.tar.gz
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. Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/flac_parser.c')
-rw-r--r--libavcodec/flac_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/flac_parser.c b/libavcodec/flac_parser.c
index 3d8e17f..ee92ee3 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);
}
OpenPOWER on IntegriCloud