I need to encode ACM stream on the fly to AAC ELD using the FDK lib.
My issue is that in my case, the AAC encoded data need to be 16 bytes aligned. I.E that the length of it will be divided by 16.
I am not sure then how to do that. I have tried to add 0 to the end of encoded data until it will be divided by 16 and then send it to the CBC but there are some Decoders do not like that.
I must add the padding to the ACC encoded data in a way that the ACC decoder on the other side will know what to do with that.
I do not think that the AAC lib i use ( the FDK Lib) has option to add padding so i think i will need to pad the encoded AAC data myself?
Can you please tell me to the best and simple way to do that