libfdk-aacdec: Decode the first AAC frame to reliably identify the bitstream
authorOmer Osman <omer.osman@iis.fraunhofer.de>
Mon, 7 Jul 2014 08:28:12 +0000 (10:28 +0200)
committerMartin Storsjö <martin@martin.st>
Mon, 7 Jul 2014 19:09:15 +0000 (22:09 +0300)
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 <omer.osman@iis.fraunhofer.de>
Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/libfdk-aacdec.c
libavcodec/version.h

index 2a975b0ff455683881ed81e9c865459afd3cc7e4..27e57120960af4d3de70eeb7aa8bba1e94510d8e 100644 (file)
@@ -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,
 };
index 05a2250da28098819de4ed3776ff2a05bb66975b..82601b568aa402dd696ddf544b54c5bd0f0dc142 100644 (file)
@@ -30,7 +30,7 @@
 
 #define LIBAVCODEC_VERSION_MAJOR 55
 #define LIBAVCODEC_VERSION_MINOR 55
-#define LIBAVCODEC_VERSION_MICRO  1
+#define LIBAVCODEC_VERSION_MICRO  2
 
 #define LIBAVCODEC_VERSION_INT  AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
                                                LIBAVCODEC_VERSION_MINOR, \