Add missing parameter to aften_encode_frame() call
commitc82101af82c1925400ef1570da97a0670cc7151a
authorThomas Brand <tom@trellis.ch>
Tue, 16 Apr 2019 12:09:54 +0000 (16 14:09 +0200)
committerThomas Brand <tom@trellis.ch>
Tue, 16 Apr 2019 12:09:54 +0000 (16 14:09 +0200)
treea1dc338638d9e42609538843fa634af4d6228345
parent84bc8f8e68608e0aac6492b2d32ef50bbced5068
Add missing parameter to aften_encode_frame() call

Problem:
int res = aften_encode_frame(&fAftenContext, fAC3Buffer + SPDIF_HEADER_SIZE, fSampleBuffer);
Fails, because API is
AFTEN_API int aften_encode_frame(AftenContext *s, unsigned char *frame_buffer,const void *samples, int count)

The additional parameter 'count' was added to libaften function aften_encode_frame() here:
https://github.com/buserror/aften/commit/e1cbb66628de8aa496a75092d8d694234c67aa95#diff-d4868af7d235a914aef2ec4f979fcb9fR87

Solves https://github.com/jackaudio/jack2/issues/455
common/JackAC3Encoder.cpp