shithub: aacenc

Download patch

ref: 70715a5ed2eafe19e137e04c351b137a43e8bbe7
parent: 59beb46e1c55c4d44e9233335b9a97d5d384b474
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Thu Dec 2 20:57:04 EST 2021

don't stop on zero bytes immediately

--- a/frontend/aacenc.c
+++ b/frontend/aacenc.c
@@ -131,8 +131,6 @@
 			if(r == 0)
 				break;
 		}
-		if(n == 0)
-			break;
 		if((sz = faacEncEncode(e, pcm, n/sizeof(*pcm), obuf, outsz)) < 0)
 			sysfatal("faacEncEncode");
 		else if(sz == 0)