I noticed 2 problems about the function "synchronize_audio".
1) The parameter pts in never used.
2) In the block "else if(wanted_size > samples_size)", nb is computed as "nb = (samples_size - wanted_size)", thus the loop "while(nb > 0)" is never performed.
I tried to resample the result with "swr_convert", without success.
I noticed 2 problems about the function "synchronize_audio". 1) The parameter pts in never used. 2) In the block "else if(wanted_size > samples_size)", nb is computed as "nb = (samples_size - wanted_size)", thus the loop "while(nb > 0)" is never performed.
I tried to resample the result with "swr_convert", without success.
Thanks for your repository anyway.