From: Reimar Döffinger Date: Mon, 9 Apr 2012 16:31:50 +0000 (+0200) Subject: latmenc: Document assumptions when copying the AAC header. X-Git-Tag: android-x86-4.4-r1~12446 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=eb24def4654a6e3d365d30fdf582ebb77c0b30db;p=android-x86%2Fexternal-ffmpeg.git latmenc: Document assumptions when copying the AAC header. Signed-off-by: Reimar Döffinger --- 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) {