add ADTS header size(7) to output byte length
authornu774 <honeycomb77@gmail.com>
Tue, 15 Jan 2013 12:18:31 +0000 (21:18 +0900)
committernu774 <honeycomb77@gmail.com>
Tue, 15 Jan 2013 12:18:31 +0000 (21:18 +0900)
src/aacenc.c

index e622c62c0d6f1b7551bad75802b2a4b5086df24d..65734ab6cdae41c9630159abac079cba3318b03c 100644 (file)
@@ -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);
This page took 0.010388 seconds and 4 git commands to generate.