Hi, trying to make heads and tails from the issue in the subject. I try to use the AAC encoder and just feed new samples, but sometimes avcodec_send_frame returns -22 and a debug log [aac @ 0x7ff118b69c80] Input contains (near) NaN/+-Inf is emitted. did have a look at the source in libavcodec/aacenc.c:946 but that did not really help as there some coefficients are checked (calculated from input data, but how can these be NaN/INF? (note: did check all input values, there are no such values involved. regards