[FFmpeg-cvslog] latmenc: Document assumptions when copying the AAC header.

Reimar Döffinger git at videolan.org
Thu Apr 12 20:32:48 CEST 2012


ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Mon Apr  9 18:31:50 2012 +0200| [eb24def4654a6e3d365d30fdf582ebb77c0b30db] | committer: Reimar Döffinger

latmenc: Document assumptions when copying the AAC header.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=eb24def4654a6e3d365d30fdf582ebb77c0b30db
---

 libavformat/latmenc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavformat/latmenc.c b/libavformat/latmenc.c
index 3ee58e0..2d804ff 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) {



More information about the ffmpeg-cvslog mailing list