OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c1e9c2
)
latmenc: Document assumptions when copying the AAC header.
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Mon, 9 Apr 2012 16:31:50 +0000
(18:31 +0200)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Thu, 12 Apr 2012 18:28:42 +0000
(20:28 +0200)
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
libavformat/latmenc.c
patch
|
blob
|
history
diff --git
a/libavformat/latmenc.c
b/libavformat/latmenc.c
index
3ee58e0
..
2d804ff
100644
(file)
--- 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) {