shithub: aacenc

Download patch

ref: b4b2a3a2186b4aecea959d3bdd2f935baf8badc9
parent: 0560c45238da7aa143dad49401f8120c96f2181a
author: Krzysztof Nikiel <knik@users.sourceforge.net>
date: Fri Oct 20 15:54:09 EDT 2017

force first frame to be short block type

--- a/libfaac/frame.c
+++ b/libfaac/frame.c
@@ -496,7 +496,7 @@
 			coderInfo[channel].block_type = ONLY_LONG_WINDOW;
 		}
     }
-    if (shortctl == SHORTCTL_NOLONG)
+    else if ((hEncoder->frameNum <= 4) || (shortctl == SHORTCTL_NOLONG))
     {
 		for (channel = 0; channel < numChannels; channel++)
 		{