Browse Source

latmenc: Document assumptions when copying the AAC header.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
tags/n0.11
Reimar Döffinger 13 years ago
parent
commit
eb24def465
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/latmenc.c

+ 2
- 0
libavformat/latmenc.c View File

@@ -111,6 +111,8 @@ static void latm_write_frame_header(AVFormatContext *s, PutBitContext *bs)
header_size = avctx->extradata_size-(ctx->off >> 3); header_size = avctx->extradata_size-(ctx->off >> 3);
avpriv_copy_bits(bs, &avctx->extradata[ctx->off >> 3], header_size); avpriv_copy_bits(bs, &avctx->extradata[ctx->off >> 3], header_size);
} else { } 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); avpriv_copy_bits(bs, avctx->extradata, ctx->off + 3);


if (!ctx->channel_conf) { if (!ctx->channel_conf) {


Loading…
Cancel
Save