Commented out currently unused and probably deprecated avcodec_encode_audio, avcodec_encode_audio2 with AVPacket should be used