From 1e9a93bfca2c2f43a07e01f2ef9fd5cbafe6c22d Mon Sep 17 00:00:00 2001 From: Omer Osman Date: Mon, 7 Jul 2014 10:28:12 +0200 Subject: libfdk-aacdec: Decode the first AAC frame to reliably identify the bitstream MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For implicit signaling cases (as possible for Spectral Band Replication and Parametric Stereo Tools), the decoder must decode the first frame to correctly identify the stream configuration (as called from avformat_find_stream_info). The mechanism for this is built-in and only requires adding CODEC_CAP_CHANNEL_CONF to the libfdk-aacdec AVCodec struct. Signed-off-by: Omer Osman Signed-off-by: Martin Storsjö --- libavcodec/libfdk-aacdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/libfdk-aacdec.c') diff --git a/libavcodec/libfdk-aacdec.c b/libavcodec/libfdk-aacdec.c index 2a975b0ff4..27e5712096 100644 --- a/libavcodec/libfdk-aacdec.c +++ b/libavcodec/libfdk-aacdec.c @@ -298,6 +298,6 @@ AVCodec ff_libfdk_aac_decoder = { .decode = fdk_aac_decode_frame, .close = fdk_aac_decode_close, .flush = fdk_aac_decode_flush, - .capabilities = CODEC_CAP_DR1, + .capabilities = CODEC_CAP_DR1 | CODEC_CAP_CHANNEL_CONF, .priv_class = &fdk_aac_dec_class, }; -- cgit v1.2.3