From: nu774 Date: Tue, 15 Jan 2013 12:18:31 +0000 (+0900) Subject: add ADTS header size(7) to output byte length X-Git-Tag: v0.1.1~2 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=d52b8bbf13dc3e5a23342d0231873ce925136d2c;p=fdkaac.git add ADTS header size(7) to output byte length --- diff --git a/src/aacenc.c b/src/aacenc.c index e622c62..65734ab 100644 --- a/src/aacenc.c +++ b/src/aacenc.c @@ -142,7 +142,7 @@ int aac_encode_frame(HANDLE_AACENCODER encoder, unsigned channel_mode, obytes; channel_mode = aacEncoder_GetParam(encoder, AACENC_CHANNELMODE); - obytes = 6144 / 8 * channel_mode; + obytes = 6144 / 8 * channel_mode + 7; if (!*output || *osize < obytes) { *osize = obytes; *output = realloc(*output, obytes);