diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-10-21 17:02:28 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-11-01 11:29:16 -0400 |
commit | 90fcac0e95b7d266c148a86506f301a2072d9de3 (patch) | |
tree | 3a98aa2c6d0bf7e22f78894dc5f308a7db0732d3 /libavcodec/flac_parser.c | |
parent | 268f8ba112570956f1d7be8f4f2f0bea86c61461 (diff) | |
download | ffmpeg-90fcac0e95b7d266c148a86506f301a2072d9de3.tar.gz |
flacdec: allow mid-stream channel layout change
Although the libFLAC decoder cannot handle such a change, it is allowed by the
spec and could potentially occur with live streams.
Diffstat (limited to 'libavcodec/flac_parser.c')
-rw-r--r-- | libavcodec/flac_parser.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/flac_parser.c b/libavcodec/flac_parser.c index 6c8c04675c..f0a37f310e 100644 --- a/libavcodec/flac_parser.c +++ b/libavcodec/flac_parser.c @@ -459,6 +459,7 @@ static int get_best_header(FLACParseContext* fpc, const uint8_t **poutbuf, fpc->avctx->sample_rate = header->fi.samplerate; fpc->avctx->channels = header->fi.channels; + ff_flac_set_channel_layout(fpc->avctx); fpc->pc->duration = header->fi.blocksize; *poutbuf = flac_fifo_read_wrap(fpc, header->offset, *poutbuf_size, &fpc->wrap_buf, |