From eb24def4654a6e3d365d30fdf582ebb77c0b30db Mon Sep 17 00:00:00 2001 From: Reimar Döffinger Date: Mon, 9 Apr 2012 18:31:50 +0200 Subject: latmenc: Document assumptions when copying the AAC header. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Reimar Döffinger --- libavformat/latmenc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavformat') diff --git a/libavformat/latmenc.c b/libavformat/latmenc.c index 3ee58e078c..2d804ff299 100644 --- a/libavformat/latmenc.c +++ b/libavformat/latmenc.c @@ -111,6 +111,8 @@ static void latm_write_frame_header(AVFormatContext *s, PutBitContext *bs) header_size = avctx->extradata_size-(ctx->off >> 3); avpriv_copy_bits(bs, &avctx->extradata[ctx->off >> 3], header_size); } else { + // + 3 assumes not scalable and dependsOnCoreCoder == 0, + // see decode_ga_specific_config in libavcodec/aacdec.c avpriv_copy_bits(bs, avctx->extradata, ctx->off + 3); if (!ctx->channel_conf) { -- cgit v1.2.3