summaryrefslogtreecommitdiff
path: root/libavformat/latmenc.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-04-09 18:31:50 +0200
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-04-12 20:28:42 +0200
commiteb24def4654a6e3d365d30fdf582ebb77c0b30db (patch)
treeaa60fe92d79ff9fb98afb620983b9416e57dc175 /libavformat/latmenc.c
parent0c1e9c2d6aa5ca10986b458863969ddb0424fb58 (diff)
latmenc: Document assumptions when copying the AAC header.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavformat/latmenc.c')
-rw-r--r--libavformat/latmenc.c2
1 files changed, 2 insertions, 0 deletions
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) {