ref: fdff41e7018a893b62e37214199e58972228650c
parent: 70715a5ed2eafe19e137e04c351b137a43e8bbe7
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sun Apr 3 05:56:08 EDT 2022
stop when no more input data available
--- a/frontend/aacenc.c
+++ b/frontend/aacenc.c
@@ -131,6 +131,8 @@
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)